Dela via


RequireAntiforgeryTokenAttribute(Boolean) Constructor

Definition

An attribute that can be used to indicate whether the antiforgery token must be validated.

public RequireAntiforgeryTokenAttribute (bool required = true);
new Microsoft.AspNetCore.Antiforgery.RequireAntiforgeryTokenAttribute : bool -> Microsoft.AspNetCore.Antiforgery.RequireAntiforgeryTokenAttribute
Public Sub New (Optional required As Boolean = true)

Parameters

required
Boolean

A value indicating whether the antiforgery token should be validated.

Applies to