DiscoveryServiceProxy Constructor (Uri, Uri, ClientCredentials, ClientCredentials)
Applies To: Microsoft Dynamics CRM 2013, Microsoft Dynamics CRM Online
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
'Declaration
Public Sub New ( _
uri As Uri, _
homeRealmUri As Uri, _
clientCredentials As ClientCredentials, _
deviceCredentials As ClientCredentials _
)
public DiscoveryServiceProxy (
Uri uri,
Uri homeRealmUri,
ClientCredentials clientCredentials,
ClientCredentials deviceCredentials
)
Parameters
- uri
Type: URI. The URI of the discovery service.
- homeRealmUri
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: ClientCredentials. The logon credentials of the client.
- deviceCredentials
Type: ClientCredentials. The Microsoft account device credentials.
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
DiscoveryServiceProxy Class
DiscoveryServiceProxy Members
Microsoft.Xrm.Sdk.Client Namespace
Other Resources
ClientCredentials Class
Helper Code: DeviceIdManager Class
Send comments about this topic to Microsoft.
© 2013 Microsoft Corporation. All rights reserved.