Udostępnij za pośrednictwem


ValidateAntiForgeryTokenAttribute Klasa

Definicja

Reprezentuje atrybut, który jest używany do zapobiegania fałszerzowaniu żądania.

[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
Dziedziczenie
ValidateAntiForgeryTokenAttribute
Atrybuty
Implementuje

Konstruktory

ValidateAntiForgeryTokenAttribute()

Inicjuje nowe wystąpienie klasy ValidateAntiForgeryTokenAttribute.

Właściwości

AllowMultiple

Pobiera lub ustawia wartość wskazującą, czy można określić więcej niż jedno wystąpienie atrybutu filtru.

(Odziedziczone po FilterAttribute)
Order

Pobiera lub ustawia kolejność wykonywania filtrów akcji.

(Odziedziczone po FilterAttribute)
Salt
Przestarzałe.

Pobiera lub ustawia ciąg soli.

Metody

OnAuthorization(AuthorizationContext)

Wywoływana, gdy jest wymagana autoryzacja.

Dotyczy