ObjectResult ObjectResult ObjectResult Class

Definition

public class ObjectResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.IActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult
type ObjectResult = class
    inherit ActionResult
    interface IStatusCodeActionResult
    interface IActionResult
Public Class ObjectResult
Inherits ActionResult
Implements IActionResult, IStatusCodeActionResult
Inheritance
ObjectResultObjectResultObjectResult
Derived
Implements

Constructors

ObjectResult(Object) ObjectResult(Object) ObjectResult(Object)

Properties

ContentTypes ContentTypes ContentTypes
DeclaredType DeclaredType DeclaredType
Formatters Formatters Formatters
StatusCode StatusCode StatusCode

Gets or sets the HTTP status code.

Value Value Value

Methods

ExecuteResult(ActionContext) ExecuteResult(ActionContext) 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 ActionResult)
ExecuteResultAsync(ActionContext) ExecuteResultAsync(ActionContext) ExecuteResultAsync(ActionContext)
OnFormatting(ActionContext) OnFormatting(ActionContext) OnFormatting(ActionContext)

This method is called before the formatter writes to the output stream.

Applies to