FormContext.HasAntiforgeryToken Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.