Utility Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public ref class Utility
public class Utility
type Utility = class
Public Class Utility
- Inheritance
-
Utility
Constructors
Utility() |
Initializes a new instance of the Utility class. |
Fields
Properties
IsClientTelemetryCheckDone | |
IsClientTelemetryEnabled | |
MaxCRMSearchResults |
Gets the number of search results. |
OnBeforeCloseHandler | |
UsdExitReportFilePath |
Methods
ActionFromEntity(Entity, String) |
Intenal function used to create an ActionDefinition from a CRM entity. |
CalculateGridLength(String, String) |
Creates a XAML GridLength object giving a string value an type defining the value. See .NET documentation for GridLength for more information |
CheckScriptCondition(String, Context, Session, Dictionary<String,String>) |
Given the condition string, determines whether the condition is true or false. |
CheckScriptCondition(String, Context, Session, List<LookupRequestItem>) |
Given the condition string, determines whether the condition is true or false. |
CheckScriptCondition(String, Context, Session) |
Given the condition string, determines whether the condition is true or false. |
ConvertListToDictionary(List<LookupRequestItem>) |
Converts a LookupRequestItem list to a dictionary. |
EnsureQualifiedRootUrl(String) |
This takes a relative URI and prepends the CRM URL to create a fully qualified URL without the ORG name if it appears after the hostname. |
EnsureQualifiedUrl(String, HostedControlType) | |
GetAndRemoveParameter(List<KeyValuePair<String,String>>, Int32) |
Retrieves a specific parameter by line number |
GetAndRemoveParameter(List<KeyValuePair<String,String>>, String) |
Takes a parameter list from a prior call to SplitLines and retrieves a specific parameter by name. The parameter is removed from the list so it can only be retrieved once with this call. |
GetApplicationDisplayName(IHostedApplication) |
Gets the application’s display name. |
GetAppNameForCrmPageNavigationEvent(String) | |
GetConfigurationValue(String) |
Shortcut function to retrieve a configuration value from the server. |
GetContextReplacedString(String, Context, DynamicsCustomerRecord, Dictionary<String,String>, Nullable<UInt32>) |
Takes a string with replacement parameters embedded within it, and returns a string with those replacement parameters with values replaced. |
GetContextReplacedString(String, Context, DynamicsCustomerRecord, List<LookupRequestItem>) |
Takes a string with replacement parameters embedded within it, and returns a string with those replacement parameters with values replaced. |
GetContextReplacedString(String, Context, Session, Dictionary<String,String>) |
Takes a string with replacement parameters embedded within it, and returns a string with those replacement parameters with values replaced. |
GetContextReplacedString(String, Context, Session, List<LookupRequestItem>) |
Takes a string with replacement parameters embedded within it, and returns a string with those replacement parameters with values replaced. |
GetContextReplacedString(String, Context, Session) |
Takes a string with replacement parameters embedded within it, and returns a string with those replacement parameters with values replaced. |
GetCrmApiUrl() | |
GetCrmUiUrl() |
Retrieves the UI URL. This one will include the org name. |
GetCurrentSessionStats() | |
GetDetailedException(Exception) | |
GetImage(String, ImageResources, Boolean) |
Retrieves an image from CRM resources or a URL |
GetImage(String, ImageResources) |
Retrieves an image from CRM resources or a URL. |
GetInnerExceptionMessage(Exception) | |
GetISHUiUrl() | |
GetReplacementList() |
Retrieves the list of replacement parameters. This is primarily used by the debugger. |
GetRootCrmUiUrl() |
Retrieves the root CRM URL. All URLs in the CRM site will start with this URL. |
GetSecureImage(String) |
Retrieves an image via URL. Default network credentials are supplied. |
GetShortcutFromUIIOption(String) | |
IsAllReplacementValuesReplaced(String) |
Determines if all replacement parameters are replaced in the supplied string. |
isXml(String) |
Checks if the string is XML based or not. |
LaunchBrowser(String, String) | |
LaunchURIProtocol(String) | |
LoadElement(String) |
Loads the elements. |
PerformExitCleanup() | |
ProcessActionParamsForEmptyKeys(List<KeyValuePair<String,String>>) | |
RemainderParameter(List<KeyValuePair<String,String>>) |
Retrieves the rest of the parameters as a multiline string. |
RemainderParameters(List<KeyValuePair<String,String>>) | |
RemoveRibbon(String) |
Removes the ribbon. |
ReplaceMultiValueData(CRMApplicationData, String, String) |
Internal function used to replace multiple value data. It is public because it is used by the DynamicsCustomerRecord. |
ReplaceMultiValueData(String, String, String) |
Internal function used to replace multiple value data. It is public because it is used by the DynamicsCustomerRecord. |
SetTimeOut(EventHandler, Int32) | |
SplitLines(String, Context, Session) |
Takes data parameters as a flat string and splits the lines into a CCD parameter list. |
SplitLines(String, Context, Sessions) |
Takes data parameters as a flat string and splits the lines into a CCD parameter list. |
Unescape(String) |
Unescapes an escaped string. |