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