AuthorizeCore Method

AuthorizeAttribute.AuthorizeCore Method (HttpContextBase)

 

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

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

abstract AuthorizeCore : 
        httpContext:HttpContextBase -> bool
override AuthorizeCore : 
        httpContext:HttpContextBase -> bool

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.

Exception Condition
ArgumentNullException

The httpContext parameter is null.

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

Return to top
Show:
© 2016 Microsoft