IServiceConfiguration<TService>.CreateChannelFactory Method (ClientCredentials)

 

Updated: November 29, 2016

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Creates a WCF channel factory that supports passing the client credentials, regardless of whether in federation authentication mode or not.

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

ChannelFactory<TService> CreateChannelFactory(
	ClientCredentials clientCredentials
)

Parameters

clientCredentials
Type: System.ServiceModel.Description.ClientCredentials

Type: ClientCredentials. Specifies client authentication credentials.

Return Value

Type: System.ServiceModel.ChannelFactory<TService>

Type: ChannelFactory< TService>
The channel factory.

Windows and UserName credentials are currently supported.

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright

Show: