Catatan
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba masuk atau mengubah direktori.
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba mengubah direktori.
Called when the caching module requests authorization.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Protected Overridable Function OnCacheAuthorization ( _
httpContext As HttpContextBase _
) As HttpValidationStatus
protected virtual HttpValidationStatus OnCacheAuthorization(
HttpContextBase httpContext
)
protected:
virtual HttpValidationStatus OnCacheAuthorization(
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.Web.HttpValidationStatus
A reference to the validation status.
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.