ResponseMessageResult ResponseMessageResult ResponseMessageResult ResponseMessageResult Class

Definition

An action result that returns a specified response message.

public ref class ResponseMessageResult : Microsoft::AspNetCore::Mvc::ObjectResult
public class ResponseMessageResult : Microsoft.AspNetCore.Mvc.ObjectResult
type ResponseMessageResult = class
    inherit ObjectResult
Public Class ResponseMessageResult
Inherits ObjectResult
Inheritance
ResponseMessageResultResponseMessageResultResponseMessageResultResponseMessageResult

Constructors

ResponseMessageResult(HttpResponseMessage) ResponseMessageResult(HttpResponseMessage) ResponseMessageResult(HttpResponseMessage) ResponseMessageResult(HttpResponseMessage)

Initializes a new instance of the ResponseMessageResult class.

Properties

ContentTypes ContentTypes ContentTypes ContentTypes Inherited from ObjectResult
DeclaredType DeclaredType DeclaredType DeclaredType Inherited from ObjectResult
Formatters Formatters Formatters Formatters Inherited from ObjectResult
Response Response Response Response

Gets the response message.

StatusCode StatusCode StatusCode StatusCode

Gets or sets the HTTP status code.

(Inherited from ObjectResult)
Value Value Value Value Inherited from ObjectResult

Methods

ExecuteResult(ActionContext) 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) ExecuteResultAsync(ActionContext) Inherited from ObjectResult
OnFormatting(ActionContext) OnFormatting(ActionContext) OnFormatting(ActionContext) OnFormatting(ActionContext)

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

(Inherited from ObjectResult)

Applies to