Condividi tramite


FormTagHelper.Antiforgery Proprietà

Definizione

Indica se deve essere generato il token antiforgery.

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)

Valore della proprietà

L'impostazione predefinita è false se l'utente fornisce un action attributo o se method è Get; true in caso contrario.

Attributi

Si applica a