The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
ContextBindingElement Constructor (ProtectionLevel, ContextExchangeMechanism)
.NET Framework (current version)
Initializes a new instance of the ContextBindingElement class with a specified level of protection and exchange mechanism.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public:
ContextBindingElement(
ProtectionLevel protectionLevel,
ContextExchangeMechanism contextExchangeMechanism
)
Parameters
- protectionLevel
-
Type:
System.Net.Security::ProtectionLevel
The ProtectionLevel for the binding element.
- contextExchangeMechanism
-
Type:
System.ServiceModel.Channels::ContextExchangeMechanism
The ContextExchangeMechanism that specifies the mechanism used to exchange context for the binding element.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | protectionLevel or contextExchangeMechanism is not valid. |
.NET Framework
Available since 3.5
Available since 3.5
Show: