DiscoveryServiceProxy Constructor (Uri, Uri, ClientCredentials, ClientCredentials)

 

Applies To: Dynamics CRM 2015

Initializes a new instance of the DiscoveryServiceProxy class using a discovery service URI, home realm URI, and client and device credentials.

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

Syntax

public DiscoveryServiceProxy(
    Uri uri,
    Uri homeRealmUri,
    ClientCredentials clientCredentials,
    ClientCredentials deviceCredentials
)
public:
DiscoveryServiceProxy(
    Uri^ uri,
    Uri^ homeRealmUri,
    ClientCredentials^ clientCredentials,
    ClientCredentials^ deviceCredentials
)
new : 
        uri:Uri *
        homeRealmUri:Uri *
        clientCredentials:ClientCredentials *
        deviceCredentials:ClientCredentials -> DiscoveryServiceProxy
Public Sub New (
    uri As Uri,
    homeRealmUri As Uri,
    clientCredentials As ClientCredentials,
    deviceCredentials As ClientCredentials
)

Parameters

  • uri
    Type: System.Uri

    Type: URI. The URI of the discovery 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.

See Also

DiscoveryServiceProxy Overload
DiscoveryServiceProxy Class
Microsoft.Xrm.Sdk.Client Namespace
ClientCredentials Class
Helper code: DeviceIdManager class

Return to top

© 2016 Microsoft. All rights reserved. Copyright