Share via


HubCallerContext.User Property

.NET Framework 4

Gets the IPrincipal for the request.

Namespace:  Microsoft.AspNet.SignalR.Hubs
Assembly:  Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)

Syntax

'Declaration
Public ReadOnly Property User As IPrincipal 
    Get
'Usage
Dim instance As HubCallerContext 
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 IPrincipal for the request.

See Also

Reference

HubCallerContext Class

Microsoft.AspNet.SignalR.Hubs Namespace