Export (0) Print
Expand All

HttpApplication.User Property

Gets the intrinsic user object for the current request.

Namespace:  System.Web
Assembly:  System.Web (in System.Web.dll)

[BrowsableAttribute(false)]
public IPrincipal User { get; }

Property Value

Type: System.Security.Principal.IPrincipal
The IPrincipal object that represents the current authenticated or anonymous user.

ExceptionCondition
HttpException

The IPrincipal object is null.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
Show:
© 2015 Microsoft