StatusCodeResult Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an ActionResult that when executed will produce an HTTP response with the given response status code.
public ref class StatusCodeResult : Microsoft::AspNetCore::Mvc::ActionResult
public ref class StatusCodeResult : Microsoft::AspNetCore::Mvc::ActionResult, Microsoft::AspNetCore::Mvc::IActionResult, Microsoft::AspNetCore::Mvc::Infrastructure::IClientErrorActionResult
public class StatusCodeResult : Microsoft.AspNetCore.Mvc.ActionResult
public class StatusCodeResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.IActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IClientErrorActionResult
type StatusCodeResult = class
inherit ActionResult
type StatusCodeResult = class
inherit ActionResult
interface IClientErrorActionResult
interface IStatusCodeActionResult
interface IActionResult
type StatusCodeResult = class
inherit ActionResult
interface IActionResult
interface IClientErrorActionResult
interface IStatusCodeActionResult
Public Class StatusCodeResult
Inherits ActionResult
Public Class StatusCodeResult
Inherits ActionResult
Implements IActionResult, IClientErrorActionResult
- Inheritance
- Derived
- Implements
Constructors
StatusCodeResult(Int32) |
Initializes a new instance of the StatusCodeResult class
with the given |
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
IStatusCodeActionResult.StatusCode |