SecurityBindingElement::CreateMutualCertificateDuplexBindingElement Method (MessageSecurityVersion^)
Creates an asymmetric security binding element that is configured to require certificate-based client authentication as well as certificate-based server authentication. This authentication mode can be used to secure duplex message exchange patterns and requires the service to be configured with the client certificate out of band.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public: static AsymmetricSecurityBindingElement^ CreateMutualCertificateDuplexBindingElement( MessageSecurityVersion^ version )
Parameters
- version
-
Type:
System.ServiceModel::MessageSecurityVersion^
The message security version.
Return Value
Type: System.ServiceModel.Channels::AsymmetricSecurityBindingElement^An AsymmetricSecurityBindingElement object.
| Exception | Condition |
|---|---|
| ArgumentNullException | version is null. |
Note |
|---|
Once a SecurityBindingElement object is created by calling this method, the MessageSecurityVersion property should be treated as immutable. Inconsistent binding behavior may occur if this value is modified. |
Available since 3.0
