SecurityBindingElement.CreateAnonymousForCertificateBindingElement Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates a symmetric security binding element that is configured for anonymous client authentication and certificate-based server authentication.

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public static SymmetricSecurityBindingElement CreateAnonymousForCertificateBindingElement()

The client and server must be configured out of band with the service certificate.

The binding is created with MessageSecurityVersion set to WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11 and RequireSignatureConfirmation set to true.

The following code shows how to call this method.

SymmetricSecurityBindingElement b =
    SecurityBindingElement.
    CreateAnonymousForCertificateBindingElement();

.NET Framework
Available since 3.0
Return to top
Show: