Export (0) Print
Expand All

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)

protected function AuthorizeCore(
	httpContext : HttpContextBase
) : boolean

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 a null reference (Nothing in Visual Basic).

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

Show:
© 2014 Microsoft