Partager via


AuthenticationService.Connect Method

Definition

Overloads

Connect(OrganizationServiceProxy)

Connects using the specified organization service proxy.

Connect(CrmServiceClient)

Connects using the specified CRM service client.

Connect(Uri, NetworkCredential)

Connects to the specified organization service URI.

Connect(Uri, Uri, ClientCredentials, ClientCredentials)

Connects to the specified URI.

Connect(Uri, String, String, ClientCredentials, Boolean)

Connects to the specified organization service URI.

Connect(Uri, Uri, NetworkCredential, String, Boolean)

Connects to the specified discovery service URI.

Connect(OrganizationServiceProxy)

Connects using the specified organization service proxy.

public:
 void Connect(Microsoft::Xrm::Sdk::Client::OrganizationServiceProxy ^ organizationServiceProxy);
public void Connect (Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy organizationServiceProxy);
member this.Connect : Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy -> unit
Public Sub Connect (organizationServiceProxy As OrganizationServiceProxy)

Parameters

organizationServiceProxy
OrganizationServiceProxy

Specifies the organization service proxy.

Applies to

Connect(CrmServiceClient)

Connects using the specified CRM service client.

public:
 void Connect(Microsoft::Xrm::Tooling::Connector::CrmServiceClient ^ externalCrmServiceClient);
public void Connect (Microsoft.Xrm.Tooling.Connector.CrmServiceClient externalCrmServiceClient);
member this.Connect : Microsoft.Xrm.Tooling.Connector.CrmServiceClient -> unit
Public Sub Connect (externalCrmServiceClient As CrmServiceClient)

Parameters

externalCrmServiceClient
CrmServiceClient

Specifies the external CRM service client.

Applies to

Connect(Uri, NetworkCredential)

Connects to the specified organization service URI.

public:
 void Connect(Uri ^ organizationServiceUri, System::Net::NetworkCredential ^ networkCredential);
public void Connect (Uri organizationServiceUri, System.Net.NetworkCredential networkCredential);
member this.Connect : Uri * System.Net.NetworkCredential -> unit
Public Sub Connect (organizationServiceUri As Uri, networkCredential As NetworkCredential)

Parameters

organizationServiceUri
Uri

Specifies the organization service URI.

networkCredential
NetworkCredential

Specifies the network credential. When given null value, uses the current user network credentials.

Applies to

Connect(Uri, Uri, ClientCredentials, ClientCredentials)

Connects to the specified URI.

public:
 void Connect(Uri ^ organizationServiceUri, Uri ^ homeRealmUri, System::ServiceModel::Description::ClientCredentials ^ clientCredentials, System::ServiceModel::Description::ClientCredentials ^ deviceCredentials);
public void Connect (Uri organizationServiceUri, Uri homeRealmUri, System.ServiceModel.Description.ClientCredentials clientCredentials, System.ServiceModel.Description.ClientCredentials deviceCredentials);
member this.Connect : Uri * Uri * System.ServiceModel.Description.ClientCredentials * System.ServiceModel.Description.ClientCredentials -> unit
Public Sub Connect (organizationServiceUri As Uri, homeRealmUri As Uri, clientCredentials As ClientCredentials, deviceCredentials As ClientCredentials)

Parameters

organizationServiceUri
Uri

Specifies the organization service URI.

homeRealmUri
Uri

Specifies the home realm URI. Not null for federation authentication.

clientCredentials
ClientCredentials

Specifies the client credentials.

deviceCredentials
ClientCredentials

Specifies the device credentials.

Applies to

Connect(Uri, String, String, ClientCredentials, Boolean)

Connects to the specified organization service URI.

public void Connect (Uri organizationServiceUri, string liveId, string password, System.ServiceModel.Description.ClientCredentials deviceCredentials, bool isOffice365 = false);
member this.Connect : Uri * string * string * System.ServiceModel.Description.ClientCredentials * bool -> unit
Public Sub Connect (organizationServiceUri As Uri, liveId As String, password As String, deviceCredentials As ClientCredentials, Optional isOffice365 As Boolean = false)

Parameters

organizationServiceUri
Uri

Specifies the organization service URI.

liveId
String

Specifies the live id (email id).

password
String

Specifies the password.

deviceCredentials
ClientCredentials

Specifies the device credentials.

isOffice365
Boolean

True if it uses Office365 authentication, otherwise false.

Applies to

Connect(Uri, Uri, NetworkCredential, String, Boolean)

Connects to the specified discovery service URI.

public void Connect (Uri discoveryServiceUri, Uri homeRealmUri, System.Net.NetworkCredential networkCredential, string organizationName, bool customIdentityProvider = false);
member this.Connect : Uri * Uri * System.Net.NetworkCredential * string * bool -> unit
Public Sub Connect (discoveryServiceUri As Uri, homeRealmUri As Uri, networkCredential As NetworkCredential, organizationName As String, Optional customIdentityProvider As Boolean = false)

Parameters

discoveryServiceUri
Uri

Specifies the discovery service URI.

homeRealmUri
Uri

Specifies the home realm URI. Not null for federation authentication.

networkCredential
NetworkCredential

Specifies the network credential. When given null value, uses the current user network credentials.

organizationName
String

Specifies the name of the organization.

customIdentityProvider
Boolean

True when using custom credentials, otherwise false.

Applies to