Jaa


CrmServiceClient Constructor (NetworkCredential, AuthenticationType, String, String, String, Boolean, Boolean, OrganizationDetail)

 

Applies To: Dynamics CRM 2015

Initializes a new instance of the CrmServiceClient class using the specified network credentials and authentication type as AD or SPLA.

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

Syntax

public CrmServiceClient(
    NetworkCredential credential,
    AuthenticationType authType,
    string hostName,
    string port,
    string orgName,
    bool useUniqueInstance = false,
    bool useSsl = false,
    OrganizationDetail orgDetail = null
)
public:
CrmServiceClient(
    NetworkCredential^ credential,
    AuthenticationType authType,
    String^ hostName,
    String^ port,
    String^ orgName,
    bool useUniqueInstance = false,
    bool useSsl = false,
    OrganizationDetail^ orgDetail = null
)
new : 
        credential:NetworkCredential *
        authType:AuthenticationType *
        hostName:string *
        port:string *
        orgName:string *
        useUniqueInstance:bool = false *
        useSsl:bool = false *
        orgDetail:OrganizationDetail = null -> CrmServiceClient
Public Sub New (
    credential As NetworkCredential,
    authType As AuthenticationType,
    hostName As String,
    port As String,
    orgName As String,
    useUniqueInstance As Boolean,
    useSsl As Boolean,
    orgDetail As OrganizationDetail
)

Parameters

  • hostName
    Type: System.String

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

  • port
    Type: System.String

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

  • orgName
    Type: System.String

    Organization name that you want to connect to.

  • useUniqueInstance
    Type: System.Boolean

    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.

  • orgDetail
    Type: Microsoft.Xrm.Sdk.Discovery.OrganizationDetail

    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.

  • useSsl
    Type: System.Boolean

    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://.

See Also

CrmServiceClient Overload
CrmServiceClient Class
Microsoft.Xrm.Tooling.Connector Namespace
Use XRM tooling to connect to CRM

Return to top

© 2016 Microsoft. All rights reserved. Copyright