HttpTransportSecurity.ClientCredentialType Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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 du client à utiliser pour l’authentification.
Exceptions
Définition de la propriété sur une valeur non définie.
Exemples
Le code suivant montre comment accéder à cette propriété et la définir.
// 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 :