RequireAntiforgeryTokenAttribute Classe

Définition

Attribut qui peut être utilisé pour indiquer si le jeton antiforgery doit être validé.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method)]
public class RequireAntiforgeryTokenAttribute : Attribute, Microsoft.AspNetCore.Antiforgery.IAntiforgeryMetadata
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method)>]
type RequireAntiforgeryTokenAttribute = class
    inherit Attribute
    interface IAntiforgeryMetadata
Public Class RequireAntiforgeryTokenAttribute
Inherits Attribute
Implements IAntiforgeryMetadata
Héritage
RequireAntiforgeryTokenAttribute
Attributs
Implémente

Constructeurs

RequireAntiforgeryTokenAttribute(Boolean)

Attribut qui peut être utilisé pour indiquer si le jeton antiforgery doit être validé.

Propriétés

RequiresValidation

Obtient ou définit une valeur indiquant si le jeton antiforgery doit être validé.

S’applique à