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::ActionResultpublic ref class StatusCodeResult : Microsoft::AspNetCore::Mvc::ActionResult, Microsoft::AspNetCore::Mvc::IActionResult, Microsoft::AspNetCore::Mvc::Infrastructure::IClientErrorActionResultpublic class StatusCodeResult : Microsoft.AspNetCore.Mvc.ActionResultpublic class StatusCodeResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.IActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IClientErrorActionResulttype StatusCodeResult = class
    inherit ActionResulttype StatusCodeResult = class
    inherit ActionResult
    interface IClientErrorActionResult
    interface IStatusCodeActionResult
    interface IActionResulttype StatusCodeResult = class
    inherit ActionResult
    interface IActionResult
    interface IClientErrorActionResult
    interface IStatusCodeActionResultPublic Class StatusCodeResult
Inherits ActionResultPublic 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 |