ServiceProxy<TService> Constructor (IServiceConfiguration<TService>, ClientCredentials)
Applies To: Dynamics CRM 2015
Initializes a new instance of the ServiceProxy<TService> class using a service configuration and client logon credentials.
Namespace: Microsoft.Xrm.Sdk.Client
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
Syntax
protected ServiceProxy(
IServiceConfiguration<TService> serviceConfiguration,
ClientCredentials clientCredentials
)
protected:
ServiceProxy(
IServiceConfiguration<TService>^ serviceConfiguration,
ClientCredentials^ clientCredentials
)
new :
serviceConfiguration:IServiceConfiguration<'TService> *
clientCredentials:ClientCredentials -> ServiceProxy
Protected Sub New (
serviceConfiguration As IServiceConfiguration(Of TService),
clientCredentials As ClientCredentials
)
Parameters
serviceConfiguration
Type: Microsoft.Xrm.Sdk.Client.IServiceConfiguration<TService>Type: IServiceConfiguration<TService>. A service configuration.
clientCredentials
Type: System.ServiceModel.Description.ClientCredentialsType: ClientCredentials. The logon credentials of the client.
Remarks
Use this constructor when the service configuration has been acquired externally, and Windows-based authentication is in use.
Do not call the Authenticate method after instantiating a ServiceProxy<TService> derived object using this constructor.
See Also
ServiceProxy<TService> Overload
ServiceProxy<TService> Class
Microsoft.Xrm.Sdk.Client Namespace
Return to top
© 2016 Microsoft. All rights reserved. Copyright