This documentation is archived and is not being maintained.

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)

new : 
        policyEnforcement:PolicyEnforcement * 
        customChannelBinding:ChannelBinding -> ExtendedProtectionPolicy


Type: System.Security.Authentication.ExtendedProtection.PolicyEnforcement
A PolicyEnforcement value that indicates when the extended protection policy should be enforced.
Type: System.Security.Authentication.ExtendedProtection.ChannelBinding
A ChannelBinding that contains a custom channel binding to use for validation.


policyEnforcement is specified as Never.


customChannelBinding is a null reference (Nothing in Visual Basic).

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

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.