WindowsAuthenticationEventArgs(WindowsIdentity, HttpContext) 构造函数

定义

初始化新创建的类实例 WindowsAuthenticationEventArgs

public:
 WindowsAuthenticationEventArgs(System::Security::Principal::WindowsIdentity ^ identity, System::Web::HttpContext ^ context);
public WindowsAuthenticationEventArgs(System.Security.Principal.WindowsIdentity identity, System.Web.HttpContext context);
new System.Web.Security.WindowsAuthenticationEventArgs : System.Security.Principal.WindowsIdentity * System.Web.HttpContext -> System.Web.Security.WindowsAuthenticationEventArgs
Public Sub New (identity As WindowsIdentity, context As HttpContext)

参数

identity
WindowsIdentity

Windows标识对象。

context
HttpContext

事件的上下文。

注解

WindowsAuthenticationModule函数使用 IIS 提供的 Windows 标识和当前WindowsAuthenticationEventArgs对象构造HttpContext对象,并将其传递给WindowsAuthentication_OnAuthenticate事件。

适用于

另请参阅