Windows apps
Collapse the table of content
Expand the table of content
Information
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)

 

Initializes a new instance of the ContextBindingElement class with a specified level of protection and exchange mechanism.

Namespace:   System.ServiceModel.Channels
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
Return to top
Show:
© 2017 Microsoft