MessageSecurityOverHttp.ClientCredentialType MessageSecurityOverHttp.ClientCredentialType MessageSecurityOverHttp.ClientCredentialType MessageSecurityOverHttp.ClientCredentialType Property

Définition

Spécifie le type d’informations d’identification du client utilisé pour l’authentification du client dans les liaisons wsHttpBinding ou wsDualHttpBinding.Specifies the type of client credential used for client authentication in the wsHttpBinding or wsDualHttpBinding bindings.

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é

Exceptions

Exemples

Le code suivant définit cette propriété.The following code sets this property.

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 le MessageCredentialType utilisé pour authentifier l'appelant au service.This property is used to set the MessageCredentialType that is used to authenticate the caller at the service. Les types valides sont :Valid types are:

S’applique à