Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ExtendedProtectionPolicy Constructor (PolicyEnforcement, ChannelBinding)

ExtendedProtectionPolicy Constructor (PolicyEnforcement, ChannelBinding)

Initializes a new instance of the ExtendedProtectionPolicy class that specifies when the extended protection policy should be enforced and the channel binding token (CBT) to be used.

Namespace:  System.Security.Authentication.ExtendedProtection
Assembly:  System (in System.dll)

public ExtendedProtectionPolicy(
	PolicyEnforcement policyEnforcement,
	ChannelBinding customChannelBinding
)

Parameters

policyEnforcement
Type: System.Security.Authentication.ExtendedProtection.PolicyEnforcement

A PolicyEnforcement value that indicates when the extended protection policy should be enforced.

customChannelBinding
Type: System.Security.Authentication.ExtendedProtection.ChannelBinding

A ChannelBinding that contains a custom channel binding to use for validation.

ExceptionCondition
ArgumentException

policyEnforcement is specified as Never.

ArgumentNullException

customChannelBinding is null.

When this constructor is used to initialize a new instance of the ExtendedProtectionPolicy class, the PolicyEnforcement property is set to the policyEnforcement parameter, the CustomChannelBinding property is set to the customChannelBinding parameter, and the ProtectionScenario property is set to TransportSelected.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft