System.Web.UI.Page.User Property

Gets information about the user making the page request.

Syntax

[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public System.Security.Principal.IPrincipal User { get; }

Value

a System.Security.Principal.IPrincipal

Remarks

An System.Security.Principal.IPrincipal object represents the security context of the user on whose behalf the code is running, including that user's identity and any roles to which they belong.

This property uses the System.Web.HttpContext object's System.Web.HttpContext.User property to determine where the request originates.

Requirements

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