ServiceProxy<TService> Constructor (Uri, Uri, ClientCredentials, ClientCredentials)
Applies To: Dynamics CRM 2015
Initializes a new instance of the ServiceProxy<TService> 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
protected ServiceProxy(
Uri uri,
Uri homeRealmUri,
ClientCredentials clientCredentials,
ClientCredentials deviceCredentials
)
protected:
ServiceProxy(
Uri^ uri,
Uri^ homeRealmUri,
ClientCredentials^ clientCredentials,
ClientCredentials^ deviceCredentials
)
new :
uri:Uri *
homeRealmUri:Uri *
clientCredentials:ClientCredentials *
deviceCredentials:ClientCredentials -> ServiceProxy
Protected Sub New (
uri As Uri,
homeRealmUri As Uri,
clientCredentials As ClientCredentials,
deviceCredentials As ClientCredentials
)
Parameters
uri
Type: System.UriType: URI. The URI of the service.
homeRealmUri
Type: System.UriType: URI. The URI of the WS-Trust metadata endpoint of a second ADFS instance.
clientCredentials
Type: System.ServiceModel.Description.ClientCredentialsType: ClientCredentials. The client’s logon credentials.
deviceCredentials
Type: System.ServiceModel.Description.ClientCredentialsType: 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.
See Also
ServiceProxy<TService> Overload
ServiceProxy<TService> Class
Microsoft.Xrm.Sdk.Client Namespace
Helper code: DeviceIdManager class
Return to top
© 2016 Microsoft. All rights reserved. Copyright