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

public IPrincipal User { get; set; }
public:
property IPrincipal^ User {
    IPrincipal^ get();
    void set(IPrincipal^ value);
}
member User : IPrincipal with get, set
Public Property User As IPrincipal

Property Value

Type: System.Security.Principal.IPrincipal

The current principal associated with this request.

See Also

ApiController Class
System.Web.Http Namespace

Return to top