HttpListener.ExtendedProtectionSelectorDelegate 屬性

定義

取得或設定委派,予以呼叫可決定要用於各個要求的 ExtendedProtectionPolicy

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; }
public System.Net.HttpListener.ExtendedProtectionSelector ExtendedProtectionSelectorDelegate { get; set; }
member this.ExtendedProtectionSelectorDelegate : System.Net.HttpListener.ExtendedProtectionSelector with get, set
Public Property ExtendedProtectionSelectorDelegate As HttpListener.ExtendedProtectionSelector

屬性值

ExtendedProtectionPolicy,指定延伸保護所使用的原則。

例外狀況

已嘗試設定 ExtendedProtectionSelectorDelegate 屬性,但 CustomChannelBinding 屬性必須為 null

已嘗試將 ExtendedProtectionSelectorDelegate 屬性設定為 null

已嘗試於 ExtendedProtectionSelectorDelegate 方法叫用後,再設定 Start() 屬性。

這個物件已經關閉。

已在不支援擴充保護的平台上嘗試設定 ExtendedProtectionSelectorDelegate 屬性。

備註

屬性ExtendedProtectionPolicy會與整合式 Windows 驗證 搭配使用,以提供延伸保護。 ExtendedProtectionPolicy屬性允許設定整個HttpListener會話的擴充保護原則。 屬性 ExtendedProtectionSelectorDelegate 允許針對個別要求設定擴充保護原則。

CustomChannelBinding 屬性必須為 null。 如果有通道系結令牌,實例 HttpListener 會直接從自己的 TLS 會話取得通道系結令牌 (CBT) 。

針對每個要求,委派可以選擇實例將用來提供擴充保護的設定 HttpListener

如果委派傳null回這個屬性,這代表ExtendedProtectionPolicy屬性設定為 NeverPolicyEnforcement

適用於

另請參閱