Share via


InternalServerErrorResult Class

Definition

An action result that returns an empty Status500InternalServerError response.

public class InternalServerErrorResult : Microsoft.AspNetCore.Mvc.StatusCodeResult
type InternalServerErrorResult = class
    inherit StatusCodeResult
Public Class InternalServerErrorResult
Inherits StatusCodeResult
Inheritance
InternalServerErrorResult

Constructors

Name Description
InternalServerErrorResult()

Initializes a new instance of the InternalServerErrorResult class.

Properties

Name Description
StatusCode

Gets the HTTP status code.

(Inherited from StatusCodeResult)

Methods

Name Description
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

Name Description
IStatusCodeActionResult.StatusCode (Inherited from StatusCodeResult)

Applies to