FormContext.HasAntiforgeryToken Vlastnost

Definice

Získá nebo nastaví indikaci aktuálního <prvku formuláře> obsahuje antiforgery token. Nepoužívejte, pokud CanRenderAtEndOfForm není pravda.

public:
 property bool HasAntiforgeryToken { bool get(); void set(bool value); };
public bool HasAntiforgeryToken { get; set; }
member this.HasAntiforgeryToken : bool with get, set
Public Property HasAntiforgeryToken As Boolean

Hodnota vlastnosti

Boolean

true if the current <form> element contains an antiforgery token; jinak nepravda .

Platí pro