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事件。

適用於

另請參閱