SecurityBindingElement::CreateCertificateOverTransportBindingElement Method (MessageSecurityVersion^)
.NET Framework (current version)
Creates a security binding element that expects clients to do certificate-based authentication using SOAP message security.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public: static TransportSecurityBindingElement^ CreateCertificateOverTransportBindingElement( MessageSecurityVersion^ version )
Parameters
- version
-
Type:
System.ServiceModel::MessageSecurityVersion^
The MessageSecurityVersion for the binding.
Return Value
Type: System.ServiceModel.Channels::TransportSecurityBindingElement^A TransportSecurityBindingElement object.
| Exception | Condition |
|---|---|
| ArgumentNullException | version is null. |
This binding element expects the transport to provide server authentication as well as message protection (for example, HTTPS). The binding element is configured with the specified MessageSecurityVersion.
The created binding has IncludeTimestamp set to true.
The LocalClientSecuritySettings object returned from LocalClientSettings has its DetectReplays property set to false.
The LocalServiceSecuritySettings object returned from LocalServiceSettings has its DetectReplays property set to false.
.NET Framework
Available since 3.0
Available since 3.0
Show: