Freigeben über


AuthorizeAttribute.AuthorizeCore Method

Determines whether access to the core framework is authorized.

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

Syntax

'Declaration
Protected Overridable Function AuthorizeCore ( _
    httpContext As HttpContextBase _
) As Boolean
protected virtual bool AuthorizeCore(
    HttpContextBase httpContext
)
protected:
virtual bool AuthorizeCore(
    HttpContextBase^ 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 access is authorized; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

The httpContext parameter is null reference (Nothing in Visual Basic).

Remarks

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

See Also

Reference

AuthorizeAttribute Class

System.Web.Mvc Namespace