Share via


FormContext.HasAntiforgeryToken Property

Definition

Gets or sets an indication the current <form> element contains an antiforgery token. Do not use unless CanRenderAtEndOfForm is true.

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

Property Value

true if the current <form> element contains an antiforgery token; false otherwise.

Applies to