ExtendedProtectionPolicy Constructor (PolicyEnforcement, ProtectionScenario, ICollection^)
Initializes a new instance of the ExtendedProtectionPolicy class that specifies when the extended protection policy should be enforced, the kind of protection enforced by the policy, and a custom Service Provider Name (SPN) list that is used to match against a client's SPN.
Assembly: System (in System.dll)
public:
ExtendedProtectionPolicy(
PolicyEnforcement policyEnforcement,
ProtectionScenario protectionScenario,
ICollection^ customServiceNames
)
Parameters
- policyEnforcement
-
Type:
System.Security.Authentication.ExtendedProtection::PolicyEnforcement
A PolicyEnforcement value that indicates when the extended protection policy should be enforced.
- protectionScenario
-
Type:
System.Security.Authentication.ExtendedProtection::ProtectionScenario
A ProtectionScenario value that indicates the kind of protection enforced by the policy.
- customServiceNames
-
Type:
System.Collections::ICollection^
A ICollection that contains the custom SPN list that is used to match against a client's SPN.
| Exception | Condition |
|---|---|
| ArgumentException | policyEnforcement is specified as Never. |
| ArgumentNullException | customServiceNames is null or an empty list. |
When this constructor is used to initialize a new instance of the ExtendedProtectionPolicy class, the PolicyEnforcement property is set to the policyEnforcement parameter, the ProtectionScenario property is set to the protectionScenario parameter, and the CustomServiceNames property is set to the customServiceNames parameter.
Available since 4.0