Partager via


Controller.User Property

Gets the user security information for the current HTTP request.

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

Syntax

'Declaration
Public ReadOnly Property User As IPrincipal
    Get
public IPrincipal User { get; }
public:
property IPrincipal^ User {
    IPrincipal^ get ();
}

Property Value

Type: System.Security.Principal.IPrincipal
The user security information for the current HTTP request.

See Also

Reference

Controller Class

System.Web.Mvc Namespace