AntiforgeryValidationFailedResult Class

Definition

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

public ref class AntiforgeryValidationFailedResult : Microsoft::AspNetCore::Mvc::BadRequestResult, Microsoft::AspNetCore::Mvc::Core::Infrastructure::IAntiforgeryValidationFailedResult, Microsoft::AspNetCore::Mvc::IActionResult
public class AntiforgeryValidationFailedResult : Microsoft.AspNetCore.Mvc.BadRequestResult, Microsoft.AspNetCore.Mvc.Core.Infrastructure.IAntiforgeryValidationFailedResult, Microsoft.AspNetCore.Mvc.IActionResult
type AntiforgeryValidationFailedResult = class
    inherit BadRequestResult
    interface IAntiforgeryValidationFailedResult
    interface IActionResult
Public Class AntiforgeryValidationFailedResult
Inherits BadRequestResult
Implements IActionResult, IAntiforgeryValidationFailedResult
Inheritance
AntiforgeryValidationFailedResult
Implements

Constructors

AntiforgeryValidationFailedResult()

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

IStatusCodeActionResult.StatusCode (Inherited from StatusCodeResult)

Applies to