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 HttpClientCredentialType ClientCredentialType { get; set; }

Exception Condition
ArgumentOutOfRangeException

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.
WSHttpBinding b = new WSHttpBinding(SecurityMode.Transport);
b.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows;

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Return to top
Show: