This documentation is archived and is not being maintained.

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; }
/** @property */
public HttpClientCredentialType get_ClientCredentialType ()

/** @property */
public void set_ClientCredentialType (HttpClientCredentialType value)

public function get ClientCredentialType () : HttpClientCredentialType

public function set ClientCredentialType (value : HttpClientCredentialType)

Not applicable.

Property Value

Returns the HttpClientCredentialType.

Exception typeCondition


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;

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0