This documentation is archived and is not being maintained.

HttpApplication.User Property

Gets the intrinsic user object for the current request.

[Visual Basic]
Public ReadOnly Property User As IPrincipal
[C#]
public IPrincipal User {get;}
[C++]
public: __property IPrincipal* get_User();
[JScript]
public function get User() : IPrincipal;

Property Value

The IPrincipal representing the current authenticated or anonymous user.

Exceptions

Exception Type Condition
HttpException The IPrincipal is a null reference (Nothing in Visual Basic).

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpApplication Class | HttpApplication Members | System.Web Namespace

Show: