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 和当前HttpContext提供的Windows标识构造WindowsAuthenticationEventArgs对象,并将其传递给 WindowsAuthentication_OnAuthenticate 事件。

适用于

另请参阅