IServiceConfiguration<TService>.CreateChannelFactory Method (ClientCredentials)
Applies To: Dynamics CRM 2015
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)
Syntax
ChannelFactory<TService> CreateChannelFactory(
ClientCredentials clientCredentials
)
ChannelFactory<TService>^ CreateChannelFactory(
ClientCredentials^ clientCredentials
)
abstract CreateChannelFactory :
clientCredentials:ClientCredentials -> ChannelFactory<'TService>
Function CreateChannelFactory (
clientCredentials As ClientCredentials
) As ChannelFactory(Of TService)
Parameters
clientCredentials
Type: System.ServiceModel.Description.ClientCredentialsType: ClientCredentials. Specifies client authentication credentials.
Return Value
Type: System.ServiceModel.ChannelFactory<TService>
Type: ChannelFactory< TService>
The channel factory.
Remarks
Windows and UserName credentials are currently supported.
See Also
CreateChannelFactory Overload
IServiceConfiguration<TService> Interface
Microsoft.Xrm.Sdk.Client Namespace
Return to top
© 2016 Microsoft. All rights reserved. Copyright