HttpListener.ExtendedProtectionSelectorDelegate HttpListener.ExtendedProtectionSelectorDelegate HttpListener.ExtendedProtectionSelectorDelegate HttpListener.ExtendedProtectionSelectorDelegate Property

定義

取得或設定委派,予以呼叫可決定要用於各個要求的 ExtendedProtectionPolicyGets or sets the delegate called to determine the ExtendedProtectionPolicy to use for each request.

public:
 property System::Net::HttpListener::ExtendedProtectionSelector ^ ExtendedProtectionSelectorDelegate { System::Net::HttpListener::ExtendedProtectionSelector ^ get(); void set(System::Net::HttpListener::ExtendedProtectionSelector ^ value); };
public System.Net.HttpListener.ExtendedProtectionSelector ExtendedProtectionSelectorDelegate { get; set; }
member this.ExtendedProtectionSelectorDelegate : System.Net.HttpListener.ExtendedProtectionSelector with get, set
Public Property ExtendedProtectionSelectorDelegate As HttpListener.ExtendedProtectionSelector

屬性值

例外狀況

已嘗試設定 ExtendedProtectionSelectorDelegate 屬性,但 CustomChannelBinding 屬性必須為 nullAn attempt was made to set the ExtendedProtectionSelectorDelegate property, but the CustomChannelBinding property must be null.

已嘗試於 ExtendedProtectionSelectorDelegate 方法叫用後,再設定 Start() 屬性。An attempt was made to set the ExtendedProtectionSelectorDelegate property after the Start() method was already called.

已在不支援擴充保護的平台上嘗試設定 ExtendedProtectionSelectorDelegate 屬性。An attempt was made to set the ExtendedProtectionSelectorDelegate property on a platform that does not support extended protection.

備註

ExtendedProtectionPolicy屬性會與整合式 Windows 驗證搭配使用, 以提供擴充保護。The ExtendedProtectionPolicy property is used with integrated Windows authentication to provide extended protection. 屬性可讓您設定整個HttpListener會話的延伸保護原則。 ExtendedProtectionPolicyThe ExtendedProtectionPolicy property allows the configuration of the extended protection policy for the whole HttpListener session. ExtendedProtectionSelectorDelegate屬性可讓您設定每個個別要求的延伸保護原則。The ExtendedProtectionSelectorDelegate property allows the configuration of the extended protection policy per individual request.

CustomChannelBinding 屬性必須為 nullThe CustomChannelBinding property must be null. HttpListener實例會從本身的 TLS 會話直接取得通道系結 Token (CBT) (如果有的話)。The HttpListener instance gets the Channel Binding Token (CBT) directly from its own TLS session if there is one.

針對每個要求, 委派可以選擇HttpListener實例將用來提供擴充保護的設定。For each request, the delegate can choose the settings that the HttpListener instance will use to provide extended protection.

如果委派null傳回此屬性的, 則ExtendedProtectionPolicy表示PolicyEnforcement屬性設為Never的。If a delegate returns null for this property, this represents a ExtendedProtectionPolicy which the PolicyEnforcement property set to Never.

適用於

另請參閱