Поделиться через


CrmConnection Class

 

Applies To: Dynamics CRM 2015

Provides a connection to the server using a connection string. (Developer Extensions)

Namespace:   Microsoft.Xrm.Client
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Xrm.Client.CrmConnection

Syntax

public class CrmConnection
public ref class CrmConnection 
type CrmConnection = class end
Public Class CrmConnection

Constructors

Name Description
System_CAPS_pubmethod CrmConnection()

Initializes a new instance of the CrmConnection class.

System_CAPS_pubmethod CrmConnection(ConnectionStringSettings)

Initializes a new instance of the CrmConnection class , setting the connection string.

System_CAPS_pubmethod CrmConnection(String)

Initializes a new instance of the CrmConnection class , setting the connection string name.

Properties

Name Description
System_CAPS_pubproperty CallerId

Gets or sets the GUID of the user for whom SDK calls are made on behalf of.

System_CAPS_pubproperty ClientCredentials

Gets or sets the user credentials.

System_CAPS_pubproperty DeviceCredentials

Gets the Windows Live ID device credentials.

System_CAPS_pubproperty HomeRealmUri

Gets or sets the URI of the cross realm STS metadata endpoint.

System_CAPS_pubproperty ProxyTypesAssembly

Gets or sets the assembly containing the strong proxy types.

System_CAPS_pubproperty ProxyTypesEnabled

Gets or sets whether the strong proxy types should be returned by the service.

System_CAPS_pubproperty ServiceConfigurationInstanceMode

Gets or sets the mode for instantiating the service configuration.

System_CAPS_pubproperty ServiceUri

Gets or set the organization service URL.

System_CAPS_pubproperty Timeout

Gets or sets the service timeout value.

System_CAPS_pubproperty UserTokenExpiryWindow

Gets or sets the time offset prior to the user token expiration when the user token should be refreshed.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetConnectionId()

Gets or sets the text value that is unique to the connection values.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_static Parse(String)

Parses a string in the DbConnectionStringBuilder format.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Extension Methods

Name Description
System_CAPS_pubmethod SerializeByJson(IEnumerable<Type>)

Serialize an object using the DataContractJsonSerializer.(Defined by ObjectExtensions.)

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.Xrm.Client Namespace
Developer extensions for Microsoft Dynamics CRM 2015
Simplified connection to Microsoft Dynamics CRM 2015

Return to top

© 2017 Microsoft. All rights reserved. Copyright