语言

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; set; }
public System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy ExtendedProtectionPolicy { get; [System.Runtime.Versioning.UnsupportedOSPlatform("browser")] set; }
member this.ExtendedProtectionPolicy : System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy with get, set
[<set: System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
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. 如果存在通道绑定令牌(CBT),则 HttpListener 实例直接从自己的 TLS 会话获取通道绑定令牌。

适用于

另请参阅