ClientCredentialType Property

HttpTransportSecurity.ClientCredentialType Property


Gets or sets the type of client credential to be used for authentication.

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

Public Property ClientCredentialType As HttpClientCredentialType

Exception Condition

Setting the property to an undefined value.

The return value can be one of the following enumeration members:

The following code shows how to access and set this property.

' The code uses a shortcut to specify the security mode to Transport.
Dim b As WSHttpBinding = New WSHttpBinding(SecurityMode.Transport)
b.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Return to top
© 2015 Microsoft