Partager via


FormTagHelper.Antiforgery Propriété

Définition

Indique si le jeton antiforgery doit être généré.

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)

Valeur de propriété

La valeur par défaut est false si l’utilisateur fournit un action attribut ou si est methodGet; true sinon.

Attributs

S’applique à