IHtmlHelper.AntiForgeryToken IHtmlHelper.AntiForgeryToken IHtmlHelper.AntiForgeryToken Method

Definition

Returns a <hidden> element (antiforgery token) that will be validated when the containing <form> is submitted.

public Microsoft.AspNetCore.Html.IHtmlContent AntiForgeryToken ();
abstract member AntiForgeryToken : unit -> Microsoft.AspNetCore.Html.IHtmlContent
Public Function AntiForgeryToken () As IHtmlContent

Returns

IHtmlContent containing the <hidden> element.

Applies to