Lenguaje

ValidateAntiForgeryTokenAttribute Clase

Definición

Representa un atributo que se usa para impedir la falsificación de una solicitud.

[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
Herencia
ValidateAntiForgeryTokenAttribute
Atributos
Implementaciones

Constructores

Nombre Description
ValidateAntiForgeryTokenAttribute()

Inicializa una nueva instancia de la clase ValidateAntiForgeryTokenAttribute.

Propiedades

Nombre Description
AllowMultiple

Obtiene o establece un valor que indica si se puede especificar más de una instancia del atributo de filtro.

(Heredado de FilterAttribute)
Order

Obtiene o establece el orden en el que se ejecutan los filtros de acción.

(Heredado de FilterAttribute)
Salt
Obsoletos.

Obtiene o establece la cadena salt.

Métodos

Nombre Description
OnAuthorization(AuthorizationContext)

Se llama cuando se necesita autorización.

Se aplica a