Partager via


ApiController.User Property

Returns the current principal associated with this request.

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

Syntax

'Declaration
Public ReadOnly Property User As IPrincipal 
    Get
'Usage
Dim instance As ApiController 
Dim value As IPrincipal 

value = instance.User
public IPrincipal User { get; }
public:
property IPrincipal^ User {
    IPrincipal^ get ();
}
member User : IPrincipal
function get User () : IPrincipal

Property Value

Type: System.Security.Principal.IPrincipal
The current principal associated with this request.

See Also

Reference

ApiController Class

System.Web.Http Namespace