Share via


ServiceProxy Constructor (Uri, Uri, ClientCredentials, ClientCredentials)

Applies To: Microsoft Dynamics CRM 2013, Microsoft Dynamics CRM Online

Initializes a new instance of the ServiceProxy class using a service URI, a home realm URI, client logon credentials, and Windows Live device credentials.

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

Syntax

'Declaration
Protected Sub New ( _
    uri As Uri, _
    homeRealmUri As Uri, _
    clientCredentials As ClientCredentials, _
    deviceCredentials As ClientCredentials _
)
protected ServiceProxy (
    Uri uri,
    Uri homeRealmUri,
    ClientCredentials clientCredentials,
    ClientCredentials deviceCredentials
)

Parameters

  • uri
    Type: URI. The URI of the service.
  • homeRealmUri
    Type: URI. The URI of the WS-Trust metadata endpoint of a second ADFS instance.
  • deviceCredentials
    Type: ClientCredentials. The credentials of a device registered with Windows Live. Only required when authenticating with Microsoft Dynamics CRM Online, otherwise use null.

Remarks

The home realm 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.

Platforms

Development Platforms

Windows Server 2008, Windows Server 2012, Windows 7 (All Versions), Windows 8 (All Versions)

Target Platforms

Windows Server 2008, ,Windows Server 2012, ,Windows 7 (All Versions),

See Also

Reference

ServiceProxy Generic Class
ServiceProxy Members
Microsoft.Xrm.Sdk.Client Namespace

Other Resources

Helper Code: DeviceIdManager Class

Send comments about this topic to Microsoft.
© 2013 Microsoft Corporation. All rights reserved.