SecurityBindingElement.CreateAnonymousForCertificateBindingElement SecurityBindingElement.CreateAnonymousForCertificateBindingElement SecurityBindingElement.CreateAnonymousForCertificateBindingElement SecurityBindingElement.CreateAnonymousForCertificateBindingElement Method

Définition

Crée un élément de liaison de sécurité symétrique configuré pour l’authentification de client anonyme et l’authentification de serveur par certificat.Creates a symmetric security binding element that is configured for anonymous client authentication and certificate-based server authentication.

public:
 static System::ServiceModel::Channels::SymmetricSecurityBindingElement ^ CreateAnonymousForCertificateBindingElement();
public static System.ServiceModel.Channels.SymmetricSecurityBindingElement CreateAnonymousForCertificateBindingElement ();
static member CreateAnonymousForCertificateBindingElement : unit -> System.ServiceModel.Channels.SymmetricSecurityBindingElement
Public Shared Function CreateAnonymousForCertificateBindingElement () As SymmetricSecurityBindingElement

Retours

Exemples

L'exemple de code suivant montre comment appeler cette méthode.The following code shows how to call this method.

SymmetricSecurityBindingElement b =
    SecurityBindingElement.
    CreateAnonymousForCertificateBindingElement();
Dim b As SymmetricSecurityBindingElement = _
SecurityBindingElement.CreateAnonymousForCertificateBindingElement()

Remarques

Le client et le serveur doivent être configurés hors plage avec le certificat de service.The client and server must be configured out of band with the service certificate.

La liaison est créée alors que MessageSecurityVersion a la valeur WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11 et RequireSignatureConfirmation a la valeur true.The binding is created with MessageSecurityVersion set to WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11 and RequireSignatureConfirmation set to true.

S’applique à