ApiController.ResponseMessage(HttpResponseMessage) ApiController.ResponseMessage(HttpResponseMessage) ApiController.ResponseMessage(HttpResponseMessage) Method

Definition

Creates a ResponseMessageResult with the specified response.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual System.Web.Http.ResponseMessageResult ResponseMessage (System.Net.Http.HttpResponseMessage response);
abstract member ResponseMessage : System.Net.Http.HttpResponseMessage -> System.Web.Http.ResponseMessageResult
override this.ResponseMessage : System.Net.Http.HttpResponseMessage -> System.Web.Http.ResponseMessageResult
Public Overridable Function ResponseMessage (response As HttpResponseMessage) As ResponseMessageResult

Parameters

response
HttpResponseMessage HttpResponseMessage HttpResponseMessage

The HTTP response message.

Returns

Applies to