Bagikan melalui


RequireAntiforgeryTokenAttribute Kelas

Definisi

Atribut yang dapat digunakan untuk menunjukkan apakah token antiforgery harus divalidasi.

[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
Warisan
RequireAntiforgeryTokenAttribute
Atribut
Penerapan

Konstruktor

RequireAntiforgeryTokenAttribute(Boolean)

Atribut yang dapat digunakan untuk menunjukkan apakah token antiforgery harus divalidasi.

Properti

RequiresValidation

Mendapatkan atau menetapkan nilai yang menunjukkan apakah token antiforgery harus divalidasi.

Berlaku untuk