MessageSecurityOverHttp.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.
Spécifie le type d’informations d’identification du client utilisé pour l’authentification du client dans les liaisons wsHttpBinding ou wsDualHttpBinding.
public:
property System::ServiceModel::MessageCredentialType ClientCredentialType { System::ServiceModel::MessageCredentialType get(); void set(System::ServiceModel::MessageCredentialType value); };
public System.ServiceModel.MessageCredentialType ClientCredentialType { get; set; }
member this.ClientCredentialType : System.ServiceModel.MessageCredentialType with get, set
Public Property ClientCredentialType As MessageCredentialType
Valeur de propriété
Un MessageCredentialType. La valeur par défaut est Windows.
Exceptions
La valeur de n’est ClientCredentialType pas valide MessageCredentialType.
Exemples
Le code suivant définit cette propriété.
WSHttpBinding myBinding = new WSHttpBinding();
myBinding.Security.Mode = SecurityMode.Message;
myBinding.Security.Message.ClientCredentialType =
MessageCredentialType.Windows;
Remarques
Cette propriété est utilisée pour définir celle MessageCredentialType utilisée pour authentifier l’appelant au niveau du service. Les types valides sont :