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身分識別和目前 HttpContext 建構 WindowsAuthenticationEventArgs 物件,並將它傳遞至 WindowsAuthentication_OnAuthenticate 事件。

適用於

另請參閱