CrmServiceClient Constructor

 

Updated: November 29, 2016

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

Initializes a new instance of the CrmServiceClient class using the specified network credentials and claims-based authentication.

Namespace:   Microsoft.Xrm.Tooling.Connector
Assembly:  Microsoft.Xrm.Tooling.Connector (in Microsoft.Xrm.Tooling.Connector.dll)

No code example is currently available or this language may not be supported.

Parameters

userId
Type:

User ID to sign in to CRM.

password
Type:

Password to sign in to CRM.

domain
Type:

Domain name to use for signing in to CRM.

homeRealm
Type:

Home realm URI of the user.

hostName
Type:

Name of the server that hosts the Microsoft Dynamics CRM web or discovery service.

port
Type:

Port number on the server that hosts the Microsoft Dynamics CRM web or discovery service (usually 5555).

orgName
Type:

CRM organization name that you want to connect to.

useUniqueInstance
Type:

Optional. Indicates whether to reuse an existing connection, if recalled while the connection is still active. Default is false. If set to true, will force the system to create a unique connection.

useSsl
Type:

Optional. Indicates whether to use SSL to connect to Microsoft Dynamics CRM. Defaults to false, that is, uses http://. If set to true, uses https://.

orgDetail
Type:

Optional. Defaults to null. If set, this is returned from a query to the Discovery service, and is generally used as the second leg of an organization selection process.

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright

Community Additions

ADD
Show: