Compartilhar via


FormTagHelper.Antiforgery Propriedade

Definição

Se o token antiforgery deve ser gerado.

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 da propriedade

false O padrão será se o usuário fornecer um action atributo ou se for Getmethod ; true caso contrário, .

Atributos

Aplica-se a