संपादित करें

इसके माध्यम से साझा किया गया


SecurityBindingElement.CreateAnonymousForCertificateBindingElement Method

Definition

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