HttpListener.ExtendedProtectionSelector 委托

定义

在确定要用于每个 HttpListener 请求的 ExtendedProtectionPolicy 时调用的委托。A delegate called to determine the ExtendedProtectionPolicy to use for each HttpListener request.

public: delegate System::Security::Authentication::ExtendedProtection::ExtendedProtectionPolicy ^ HttpListener::ExtendedProtectionSelector(HttpListenerRequest ^ request);
public delegate System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy HttpListener.ExtendedProtectionSelector(HttpListenerRequest request);
type HttpListener.ExtendedProtectionSelector = delegate of HttpListenerRequest -> ExtendedProtectionPolicy
Public Delegate Function HttpListener.ExtendedProtectionSelector(request As HttpListenerRequest) As ExtendedProtectionPolicy 

参数

request
HttpListenerRequest

用于确定 HttpListener 实例将用来提供扩展保护的扩展保护策略的 HttpListenerRequestThe HttpListenerRequest to determine the extended protection policy that the HttpListener instance will use to provide extended protection.

返回值

ExtendedProtectionPolicy

一个 ExtendedProtectionPolicy 对象,它指定用于此请求的扩展保护策略。An ExtendedProtectionPolicy object that specifies the extended protection policy to use for this request.

继承
HttpListener.ExtendedProtectionSelector

注解

HttpListener.ExtendedProtectionSelector类与集成的 Windows 身份验证一起使用, 以提供扩展保护。The HttpListener.ExtendedProtectionSelector class is used with integrated Windows authentication to provide extended protection. 对于每个请求, 委托可以选择HttpListener实例将用来提供扩展保护的设置。For each request, the delegate can choose the settings that the HttpListener instance will use to provide extended protection.

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于

另请参阅