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) (如果有)。

适用于

另请参阅