Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

SecurityBindingElement.CreateAnonymousForCertificateBindingElement Method

Definition

Namespace:
System.ServiceModel.Channels
Assembly:
System.ServiceModel.dll

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

Returns

A SymmetricSecurityBindingElement that holds the new binding.

Examples

The following code shows how to call this method.

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

Remarks

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.

Applies to


Feedback

Was this page helpful?