AuthorizeAttribute.AuthorizeCore Method

When overridden, provides an entry point for custom authorization checks.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

'Declaration
Protected Overridable Function AuthorizeCore ( _
	httpContext As HttpContextBase _
) As Boolean
'Usage
Dim httpContext As HttpContextBase 
Dim returnValue As Boolean 

returnValue = Me.AuthorizeCore(httpContext)

Parameters

httpContext
Type: System.Web.HttpContextBase

The HTTP context, which encapsulates all HTTP-specific information about an individual HTTP request.

Return Value

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

ExceptionCondition
ArgumentNullException

The httpContext parameter is Nothing.

The httpContext object contains information about the server, session, request, user, application, and more.

Show: