HttpListener.ExtendedProtectionSelectorDelegate 属性
定义
获取或设置在确定要用于每个请求的 ExtendedProtectionPolicy 时调用的委托。Gets or sets the delegate called to determine the ExtendedProtectionPolicy to use for each request.
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,它指定要用于扩展保护的策略。A ExtendedProtectionPolicy that specifies the policy to use for extended protection.
例外
尝试设置 ExtendedProtectionSelectorDelegate 属性,但 CustomChannelBinding 属性必须为 null。An attempt was made to set the ExtendedProtectionSelectorDelegate property, but the CustomChannelBinding property must be null.
尝试将 ExtendedProtectionSelectorDelegate 属性设置为 null。An attempt was made to set the ExtendedProtectionSelectorDelegate property to null.
尝试在调用 ExtendedProtectionSelectorDelegate 方法后设置 Start() 属性。An attempt was made to set the ExtendedProtectionSelectorDelegate property after the Start() method was already called.
此对象已关闭。This object is closed.
已试图在不支持扩展的保护的平台上设置 ExtendedProtectionSelectorDelegate 属性。An attempt was made to set the ExtendedProtectionSelectorDelegate property on a platform that does not support extended protection.
注解
ExtendedProtectionPolicy属性与集成的 Windows 身份验证一起使用,以提供扩展保护。The ExtendedProtectionPolicy property is used with integrated Windows authentication to provide extended protection. ExtendedProtectionPolicy属性允许配置整个会话的扩展保护策略 HttpListener 。The 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 per individual request.
CustomChannelBinding 属性必须为 null。The CustomChannelBinding property must be null. HttpListener实例获取 (CBT) 的通道绑定令牌(如果有)。The HttpListener instance gets the Channel Binding Token (CBT) directly from its own TLS session if there is one.
对于每个请求,委托可以选择 HttpListener 实例将用来提供扩展保护的设置。For each request, the delegate can choose the settings that the HttpListener instance will use to provide extended protection.
如果委托 null 为此属性返回,则此属性表示 ExtendedProtectionPolicy PolicyEnforcement 属性设置为的 Never 。If a delegate returns null for this property, this represents a ExtendedProtectionPolicy which the PolicyEnforcement property set to Never.