Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Configures the channel factory credentials for a specified mode of authentication.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Sub ConfigureCredentials(Of TChannel) ( _
factory As ChannelFactory(Of TChannel), _
authenticationMode As SPServiceAuthenticationMode _
)
'Usage
Dim factory As ChannelFactory(Of TChannel)
Dim authenticationMode As SPServiceAuthenticationMode
factory.ConfigureCredentials(authenticationMode)
public static void ConfigureCredentials<TChannel>(
this ChannelFactory<TChannel> factory,
SPServiceAuthenticationMode authenticationMode
)
Type parameters
- TChannel
The kind of channel to configure.
Parameters
factory
Type: System.ServiceModel.ChannelFactory<TChannel>The ChannelFactory used to create the channel.
authenticationMode
Type: Microsoft.SharePoint.SPServiceAuthenticationModeThe setting the ChannelFactory will use to authenticate with a service.
Usage note
In Visual Basic and C#, you can call this method as an instance method on any object of type ChannelFactory<TChannel>. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=office.15) or https://msdn.microsoft.com/en-us/library/bb383977(v=office.15).
See also
Reference
SPChannelFactoryOperations class