AuthorizeAttribute.UserAuthorized Method

Visual Studio 2010
.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)

'Declaration
Protected Overridable Function UserAuthorized ( _
	user As IPrincipal _
) As Boolean
'Usage
Dim user As IPrincipal 
Dim returnValue As Boolean 

returnValue = Me.UserAuthorized(user)

Parameters

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.
Show: