HttpListener::ExtendedProtectionSelectorDelegate Property
Get or set the delegate called to determine the ExtendedProtectionPolicy to use for each request.
Assembly: System (in System.dll)
public: property HttpListener::ExtendedProtectionSelector^ ExtendedProtectionSelectorDelegate { HttpListener::ExtendedProtectionSelector^ get(); void set(HttpListener::ExtendedProtectionSelector^ value); }
Property Value
Type: System.Net::HttpListener::ExtendedProtectionSelector^A ExtendedProtectionPolicy that specifies the policy to use for extended protection.
| Exception | Condition |
|---|---|
| ArgumentException | An attempt was made to set the ExtendedProtectionSelectorDelegate property, but the CustomChannelBinding property must be null. |
| ArgumentNullException | An attempt was made to set the ExtendedProtectionSelectorDelegate property to null. |
| InvalidOperationException | An attempt was made to set the ExtendedProtectionSelectorDelegate property after the Start method was already called. |
| ObjectDisposedException | This object is closed. |
| PlatformNotSupportedException | An attempt was made to set the ExtendedProtectionSelectorDelegate property on a platform that does not support extended protection. |
The ExtendedProtectionPolicy property is used with integrated Windows authentication to provide extended protection. The ExtendedProtectionPolicy property allows the configuration of the extended protection policy for the whole HttpListener session. The ExtendedProtectionSelectorDelegate property allows the configuration of the extended protection policy per individual request.
The CustomChannelBinding property must be null. The HttpListener instance gets the Channel Binding Token (CBT) directly from its own TLS session if there is one.
For each request, the delegate can choose the settings that the HttpListener instance will use to provide extended protection.
If a delegate returns null for this property, this represents a ExtendedProtectionPolicy which the PolicyEnforcement property set to Never.
Available since 2.0