Share via


ValidateAntiForgeryTokenAttribute.OnAuthorization Method (AuthorizationContext)

 

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

Implements

IAuthorizationFilter.OnAuthorization(AuthorizationContext)

Exceptions

Exception Condition
ArgumentNullException

The filterContext parameter is null.

See Also

ValidateAntiForgeryTokenAttribute Class
System.Web.Mvc Namespace

Return to top