HttpTransportSecurity.ClientCredentialType Propriété

Définition

Obtient ou définit le type d'informations d'identification du client à utiliser pour l'authentification.

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

Valeur de propriété

Une des valeurs d’énumération qui indique le type d’informations d’identification client à utiliser pour l’authentification.

Exceptions

Affectation d'une valeur indéfinie à la propriété.

Exemples

Le code suivant montre comment accéder à et définir cette propriété.

// 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

Remarques

La valeur de retour peut être l'un des membres d'énumération suivants :

S’applique à