FormTagHelper.Antiforgery Vlastnost

Definice

Zda má být vygenerován antiforgery token.

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)

Hodnota vlastnosti

Nullable<Boolean>

Výchozí hodnota je false, pokud uživatel poskytuje atribut akce nebo pokud je Getmetoda ; v opačném případě.

Atributy

Platí pro