WindowsAuthenticationEventArgs(WindowsIdentity, HttpContext) Konstruktor
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Initierar en nyinstans av WindowsAuthenticationEventArgs klassen.
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)
Parametrar
- identity
- WindowsIdentity
Det Windows identitetsobjektet.
- context
- HttpContext
Kontexten för händelsen.
Kommentarer
WindowsAuthenticationModule konstruerar ett WindowsAuthenticationEventArgs-objekt med hjälp av den Windows identitet som tillhandahålls av IIS och den aktuella HttpContext och skickar det till händelsen WindowsAuthentication_OnAuthenticate.