Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Called when the caching module requests authorization.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
protected virtual HttpValidationStatus OnCacheAuthorization(
HttpContextBase httpContext
)
protected:
virtual HttpValidationStatus OnCacheAuthorization(
HttpContextBase^ httpContext
)
abstract OnCacheAuthorization :
httpContext:HttpContextBase -> HttpValidationStatus
override OnCacheAuthorization :
httpContext:HttpContextBase -> HttpValidationStatus
Protected Overridable Function OnCacheAuthorization (
httpContext As HttpContextBase
) As HttpValidationStatus
Parameters
httpContext
Type: System.Web.HttpContextBaseThe HTTP context, which encapsulates all HTTP-specific information about an individual HTTP request.
Return Value
Type: System.Web.HttpValidationStatus
A reference to the validation status.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The httpContext parameter is null. |
Remarks
The httpContext object contains information about the server, session, request, user, application, and more.
See Also
AuthorizeAttribute Class
System.Web.Mvc Namespace
Return to top