Compartir a través de


Utility Class

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016

Namespace:   Microsoft.Crm.UnifiedServiceDesk.Dynamics
Assembly:  Microsoft.Crm.UnifiedServiceDesk.Dynamics (in Microsoft.Crm.UnifiedServiceDesk.Dynamics.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Crm.UnifiedServiceDesk.Dynamics.Utility

Syntax

public class Utility
Public Class Utility

Constructors

Name Description
System_CAPS_pubmethod Utility()

Initializes a new instance of the Utility class.

Properties

Name Description
System_CAPS_pubpropertySystem_CAPS_static MaxCRMSearchResults

Gets the number of search results.

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static ActionFromEntity(Entity, String)

Intenal function used to create an ActionDefinition from a CRM entity.

System_CAPS_pubmethodSystem_CAPS_static 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

System_CAPS_pubmethodSystem_CAPS_static CheckScriptCondition(String, Context, Session)

Given the condition string, determines whether the condition is true or false.

System_CAPS_pubmethodSystem_CAPS_static CheckScriptCondition(String, Context, Session, Dictionary<String, String>)

Given the condition string, determines whether the condition is true or false.

System_CAPS_pubmethodSystem_CAPS_static CheckScriptCondition(String, Context, Session, List<LookupRequestItem>)

Given the condition string, determines whether the condition is true or false.

System_CAPS_pubmethodSystem_CAPS_static ConvertListToDictionary(List<LookupRequestItem>)

Converts a LookupRequestItem list to a dictionary.

System_CAPS_pubmethodSystem_CAPS_static 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.

System_CAPS_pubmethodSystem_CAPS_static EnsureQualifiedUrl(String, HostedControlType)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_static GetAndRemoveParameter(List<KeyValuePair<String, String>>, Int32)

Retrieves a specific parameter by line number

System_CAPS_pubmethodSystem_CAPS_static 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.

System_CAPS_pubmethodSystem_CAPS_static GetApplicationDisplayName(IHostedApplication)

Gets the application’s display name.

System_CAPS_pubmethodSystem_CAPS_static GetConfigurationValue(String)

Shortcut function to retrieve a configuration value from the server.

System_CAPS_pubmethodSystem_CAPS_static 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.

System_CAPS_pubmethodSystem_CAPS_static 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.

System_CAPS_pubmethodSystem_CAPS_static GetContextReplacedString(String, Context, Session)

Takes a string with replacement parameters embedded within it, and returns a string with those replacement parameters with values replaced.

System_CAPS_pubmethodSystem_CAPS_static 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.

System_CAPS_pubmethodSystem_CAPS_static 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.

System_CAPS_pubmethodSystem_CAPS_static GetCrmUiUrl()

Retrieves the UI URL. This one will include the org name.

System_CAPS_pubmethodSystem_CAPS_static GetDetailedException(Exception)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_static GetImage(String, ImageResources)

Retrieves an image from CRM resources or a URL.

System_CAPS_pubmethodSystem_CAPS_static GetImage(String, ImageResources, Boolean)

Retrieves an image from CRM resources or a URL

System_CAPS_pubmethodSystem_CAPS_static GetInnerExceptionMessage(Exception)

System_CAPS_pubmethodSystem_CAPS_static GetISHUiUrl()

System_CAPS_pubmethodSystem_CAPS_static GetReplacementList()

Retrieves the list of replacement parameters. This is primarily used by the debugger.

System_CAPS_pubmethodSystem_CAPS_static GetRootCrmUiUrl()

Retrieves the root CRM URL. All URLs in the CRM site will start with this URL.

System_CAPS_pubmethodSystem_CAPS_static GetSecureImage(String)

Retrieves an image via URL. Default network credentials are supplied.

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_static IsAllReplacementValuesReplaced(String)

Determines if all replacement parameters are replaced in the supplied string.

System_CAPS_pubmethodSystem_CAPS_static isXml(String)

Checks if the string is XML based or not.

System_CAPS_pubmethodSystem_CAPS_static LoadElement(String)

Loads the elements.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_static ProcessActionParamsForEmptyKeys(List<KeyValuePair<String, String>>)

System_CAPS_pubmethodSystem_CAPS_static RemainderParameter(List<KeyValuePair<String, String>>)

Retrieves the rest of the parameters as a multiline string.

System_CAPS_pubmethodSystem_CAPS_static RemoveRibbon(String)

Removes the ribbon.

System_CAPS_pubmethodSystem_CAPS_static ReplaceMultiValueData(CRMApplicationData, String, String)

Internal function used to replace multiple value data. It is public because it is used by the DynamicsCustomerRecord.

System_CAPS_pubmethodSystem_CAPS_static ReplaceMultiValueData(String, String, String)

Internal function used to replace multiple value data. It is public because it is used by the DynamicsCustomerRecord.

System_CAPS_pubmethodSystem_CAPS_static SplitLines(String, Context, Session)

Takes data parameters as a flat string and splits the lines into a CCD parameter list.

System_CAPS_pubmethodSystem_CAPS_static SplitLines(String, Context, Sessions)

Takes data parameters as a flat string and splits the lines into a CCD parameter list.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_static Unescape(String)

Unescapes an escaped string.

Fields

Name Description
System_CAPS_pubfieldSystem_CAPS_static FatalExceptionExitCode

System_CAPS_pubfieldSystem_CAPS_static IEPROCESSKEYBOARDSHORTCUT

System_CAPS_pubfieldSystem_CAPS_static SyncFlushErrorCode

System_CAPS_pubfieldSystem_CAPS_static SyncFlushErrorText

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Crm.UnifiedServiceDesk.Dynamics Namespace

Return to top

Unified Service Desk 2.0

© 2017 Microsoft. All rights reserved. Copyright