Op Englesch liesen

Deelen iwwer


StatusCodeResult Class

Definition

Represents an ActionResult that when executed will produce an HTTP response with the given response status code.

C#
public class StatusCodeResult : Microsoft.AspNetCore.Mvc.ActionResult
C#
public class StatusCodeResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.IActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IClientErrorActionResult
Inheritance
StatusCodeResult
Derived
Implements

Constructors

StatusCodeResult(Int32)

Initializes a new instance of the StatusCodeResult class with the given statusCode.

Properties

StatusCode

Gets the HTTP status code.

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.

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 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0