Share via


ValidateAntiForgeryTokenAttribute.OnAuthorization Method

Definition

Called when authorization is required.

public void OnAuthorization (System.Web.Mvc.AuthorizationContext filterContext);
abstract member OnAuthorization : System.Web.Mvc.AuthorizationContext -> unit
override this.OnAuthorization : System.Web.Mvc.AuthorizationContext -> unit
Public Sub OnAuthorization (filterContext As AuthorizationContext)

Parameters

filterContext
AuthorizationContext

The filter context.

Implements

Exceptions

The filterContext parameter is null.

Applies to