Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
UserAuthorized Method
Collapse the table of content
Expand the table of content

AuthorizeAttribute::UserAuthorized Method

.NET Framework 4
.NET Framework 4

When overridden, provides an entry point for custom authorization checks. Called by AuthorizeHubConnection(HubDescriptor, IRequest) and AuthorizeHubMethodInvocation(IHubIncomingInvokerContext, Boolean).

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

virtual bool UserAuthorized(
	IPrincipal^ user


Type: System.Security.Principal::IPrincipal
The IPrincipal for the client being authorized.

Return Value

Type: System::Boolean
true if the user is authorized, otherwise, false.
© 2015 Microsoft