Op Englesch liesen

Deelen iwwer


AntiforgeryValidationFailedResult Class

Definition

A BadRequestResult used for antiforgery validation failures. Use IAntiforgeryValidationFailedResult to match for validation failures inside MVC result filters.

C#
public class AntiforgeryValidationFailedResult : Microsoft.AspNetCore.Mvc.BadRequestResult, Microsoft.AspNetCore.Mvc.Core.Infrastructure.IAntiforgeryValidationFailedResult, Microsoft.AspNetCore.Mvc.IActionResult
Inheritance
AntiforgeryValidationFailedResult
Implements

Constructors

Properties

StatusCode

Gets the HTTP status code.

(Inherited from StatusCodeResult)

Methods

ExecuteResult(ActionContext)

Executes the result operation of the action method synchronously. This method is called by MVC to process the result of an action method.

(Inherited from StatusCodeResult)
ExecuteResultAsync(ActionContext)

Executes the result operation of the action method asynchronously. This method is called by MVC to process the result of an action method. The default implementation of this method calls the ExecuteResult(ActionContext) method and returns a completed task.

(Inherited from ActionResult)

Explicit Interface Implementations

Applies to

Produkt Versiounen
ASP.NET Core 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0