ValidateAntiForgeryTokenAttribute ValidateAntiForgeryTokenAttribute ValidateAntiForgeryTokenAttribute Class

Definition

Represents an attribute that is used to prevent forgery of a request.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class ValidateAntiForgeryTokenAttribute : System.Web.Mvc.FilterAttribute, System.Web.Mvc.IAuthorizationFilter
type ValidateAntiForgeryTokenAttribute = class
    inherit FilterAttribute
    interface IAuthorizationFilter
Public NotInheritable Class ValidateAntiForgeryTokenAttribute
Inherits FilterAttribute
Implements IAuthorizationFilter
Inheritance
ValidateAntiForgeryTokenAttributeValidateAntiForgeryTokenAttributeValidateAntiForgeryTokenAttribute
Attributes
Implements

Constructors

ValidateAntiForgeryTokenAttribute() ValidateAntiForgeryTokenAttribute() ValidateAntiForgeryTokenAttribute()

Initializes a new instance of the ValidateAntiForgeryTokenAttribute class.

Properties

AllowMultiple AllowMultiple AllowMultiple

Gets or sets a value that indicates whether more than one instance of the filter attribute can be specified.

(Inherited from FilterAttribute)
Order Order Order

Gets or sets the order in which the action filters are executed.

(Inherited from FilterAttribute)
Salt Salt Salt

Gets or sets the salt string.

Methods

OnAuthorization(AuthorizationContext) OnAuthorization(AuthorizationContext) OnAuthorization(AuthorizationContext)

Called when authorization is required.

Applies to