System.Web.Security.WindowsAuthenticationEventArgs.Identity Property

Gets the Windows identity passed to the System.Web.Security.WindowsAuthenticationEventArgs constructor.

Syntax

public System.Security.Principal.WindowsIdentity Identity { get; }

Value

a System.Security.Principal.WindowsIdentity

Remarks

The System.Web.Security.WindowsAuthenticationModule constructs a System.Web.Security.WindowsAuthenticationEventArgs object using the Windows identity supplied by IIS and the current System.Web.HttpContext and passes it to the WindowsAuthentication_OnAuthenticate event.

If IIS uses anonymous authentication, the WindowsAuthenticationEventArgs.Identity property is set to the identity returned by the System.Security.Principal.WindowsIdentity.GetAnonymous method.

Requirements

Namespace: System.Web.Security
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0