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)

 

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

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
ContextBindingElement(
	ProtectionLevel protectionLevel
)

Parameters

protectionLevel
Type: System.Net.Security::ProtectionLevel

The ProtectionLevel for the binding element.

Exception Condition
ArgumentOutOfRangeException

The protectionLevel is not valid.

Sets the default value of ContextSoapHeader for ContextExchangeMechanism.

.NET Framework
Available since 3.5
Return to top
Show:
© 2017 Microsoft