HttpListener.ExtendedProtectionPolicy 屬性

定義

取得或設定 ExtendedProtectionPolicy,以用於工作階段的擴充保護。

public:
 property System::Security::Authentication::ExtendedProtection::ExtendedProtectionPolicy ^ ExtendedProtectionPolicy { System::Security::Authentication::ExtendedProtection::ExtendedProtectionPolicy ^ get(); void set(System::Security::Authentication::ExtendedProtection::ExtendedProtectionPolicy ^ value); };
public System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy ExtendedProtectionPolicy { get; [System.Runtime.Versioning.UnsupportedOSPlatform("browser")] set; }
public System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy ExtendedProtectionPolicy { get; set; }
[<set: System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.ExtendedProtectionPolicy : System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy with get, set
member this.ExtendedProtectionPolicy : System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy with get, set
Public Property ExtendedProtectionPolicy As ExtendedProtectionPolicy

屬性值

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

屬性

例外狀況

嘗試設定 ExtendedProtectionPolicy 屬性,但 CustomChannelBinding 屬性不是 null

已嘗試將 ExtendedProtectionPolicy 屬性設定為 null

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

這個物件已經關閉。

在不支援延伸保護的平台上,PolicyEnforcement 屬性設定為 Always

備註

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

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

適用於

另請參閱