Share via


AuthorizeAttribute.UserAuthorized Method

.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)

Syntax

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

returnValue = Me.UserAuthorized(user)
protected virtual bool UserAuthorized(
    IPrincipal user
)
protected:
virtual bool UserAuthorized(
    IPrincipal^ user
)
abstract UserAuthorized : 
        user:IPrincipal -> bool  
override UserAuthorized : 
        user:IPrincipal -> bool
protected function UserAuthorized(
    user : IPrincipal
) : boolean

Parameters

Return Value

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

See Also

Reference

AuthorizeAttribute Class

Microsoft.AspNet.SignalR Namespace