WindowsAuthenticationEventArgs(WindowsIdentity, HttpContext) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化新创建的类实例 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事件。