System.Web.Security.FormsAuthenticationEventArgs.User Property

Gets or sets the System.Security.Principal.IPrincipal object to be associated with the current request.

Syntax

public System.Security.Principal.IPrincipal User { set; get; }

Value

a System.Security.Principal.IPrincipal

Remarks

You can use the FormsAuthenticationEventArgs.User property to set the System.Web.HttpContext.User property of the current System.Web.HttpContext to a custom System.Security.Principal.IPrincipal object.

If you do not specify a value for the FormsAuthenticationEventArgs.User property during the FormsAuthentication_OnAuthenticate event, the identity supplied by the forms authentication ticket in the cookie or URL is used.

Requirements

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