Szerkesztés

Megosztás a következőn keresztül:


HttpTransportSecurity.ClientCredentialType Property

Definition

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

public:
 property System::ServiceModel::HttpClientCredentialType ClientCredentialType { System::ServiceModel::HttpClientCredentialType get(); void set(System::ServiceModel::HttpClientCredentialType value); };
public System.ServiceModel.HttpClientCredentialType ClientCredentialType { get; set; }
member this.ClientCredentialType : System.ServiceModel.HttpClientCredentialType with get, set
Public Property ClientCredentialType As HttpClientCredentialType

Property Value

One of the enumeration values that indicates the type of client credential to be used for authentication.

Exceptions

Setting the property to an undefined value.

Examples

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;
' 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

Remarks

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

Applies to