OrganizationServiceProxy Constructor (Uri, Uri, ClientCredentials, ClientCredentials)

 

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 OrganizationServiceProxy class using a organization service URI, home realm URI, and client and device credentials.

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

public OrganizationServiceProxy(
	Uri uri,
	Uri homeRealmUri,
	ClientCredentials clientCredentials,
	ClientCredentials deviceCredentials
)

Parameters

uri
Type: System.Uri

Type: URI. The URI of the organization service.

homeRealmUri
Type: System.Uri

Type: URI. This parameter is set to a non-null value when a second ADFS instance is configured as an identity provider to the ADFS instance that Microsoft Dynamics CRM 2011 has been configured with for claims authentication. The parameter value is the URI of the WS-Trust metadata endpoint of the second ADFS instance.

clientCredentials
Type: System.ServiceModel.Description.ClientCredentials

Type: ClientCredentials. The logon credentials of the client.

deviceCredentials
Type: System.ServiceModel.Description.ClientCredentials

Type: ClientCredentials. The Windows Live ID device credentials.

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright

Show: