Compartir a través de


DefaultHtmlGenerator.GenerateAntiforgery(ViewContext) Método

Definición

Genere un <elemento type="hidden".../> que contenga un token antiforgery.

public:
 virtual Microsoft::AspNetCore::Html::IHtmlContent ^ GenerateAntiforgery(Microsoft::AspNetCore::Mvc::Rendering::ViewContext ^ viewContext);
public virtual Microsoft.AspNetCore.Html.IHtmlContent GenerateAntiforgery (Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext);
abstract member GenerateAntiforgery : Microsoft.AspNetCore.Mvc.Rendering.ViewContext -> Microsoft.AspNetCore.Html.IHtmlContent
override this.GenerateAntiforgery : Microsoft.AspNetCore.Mvc.Rendering.ViewContext -> Microsoft.AspNetCore.Html.IHtmlContent
Public Overridable Function GenerateAntiforgery (viewContext As ViewContext) As IHtmlContent

Parámetros

viewContext
ViewContext

Instancia ViewContext del ámbito actual.

Devoluciones

Instancia IHtmlContent del <elemento input type="hidden".../> . Diseñado para usarse dentro de un <elemento de formulario> .

Implementaciones

Se aplica a