Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Called when authorization is required.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
public void OnAuthorization(
AuthorizationContext filterContext
)
public:
virtual void OnAuthorization(
AuthorizationContext^ filterContext
) sealed
abstract OnAuthorization :
filterContext:AuthorizationContext -> unit
override OnAuthorization :
filterContext:AuthorizationContext -> unit
Public Sub OnAuthorization (
filterContext As AuthorizationContext
)
Parameters
filterContext
Type: System.Web.Mvc.AuthorizationContextThe filter context.
Implements
IAuthorizationFilter.OnAuthorization(AuthorizationContext)
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The filterContext parameter is null. |
See Also
ValidateAntiForgeryTokenAttribute Class
System.Web.Mvc Namespace
Return to top