HttpListener.ExtendedProtectionPolicy HttpListener.ExtendedProtectionPolicy HttpListener.ExtendedProtectionPolicy HttpListener.ExtendedProtectionPolicy Property

定義

取得或設定 ExtendedProtectionPolicy,以用於工作階段的擴充保護。Gets or sets the ExtendedProtectionPolicy to use for extended protection for a session.

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; set; }
member this.ExtendedProtectionPolicy : System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy with get, set
Public Property ExtendedProtectionPolicy As ExtendedProtectionPolicy

屬性值

ExtendedProtectionPolicy,用來指定延伸保護所使用的原則。A ExtendedProtectionPolicy that specifies the policy to use for extended protection.

例外狀況

嘗試設定 ExtendedProtectionPolicy 屬性,但 CustomChannelBinding 屬性不是 nullAn attempt was made to set the ExtendedProtectionPolicy property, but the CustomChannelBinding property was not null.

已嘗試將 ExtendedProtectionPolicy 屬性設定為 nullAn attempt was made to set the ExtendedProtectionPolicy property to null.

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

在不支援延伸保護的平台上,PolicyEnforcement 屬性設定為 AlwaysThe PolicyEnforcement property was set to Always 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 for each 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.

適用於

另請參閱