Compartir a través de


FormTagHelper.Antiforgery Propiedad

Definición

Indica si se debe generar el token antifalsificación.

public:
 property Nullable<bool> Antiforgery { Nullable<bool> get(); void set(Nullable<bool> value); };
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeName("asp-antiforgery")]
public bool? Antiforgery { get; set; }
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeName("asp-antiforgery")>]
member this.Antiforgery : Nullable<bool> with get, set
Public Property Antiforgery As Nullable(Of Boolean)

Valor de propiedad

El valor predeterminado es false si el usuario proporciona un action atributo o si method es Get; true de lo contrario.

Atributos

Se aplica a