ApiController.ResponseMessage(HttpResponseMessage) 方法

定义

ResponseMessageResult使用指定的响应创建 。

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual System.Web.Http.ResponseMessageResult ResponseMessage (System.Net.Http.HttpResponseMessage response);
[<Microsoft.AspNetCore.Mvc.NonAction>]
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

参数

response
HttpResponseMessage

HTTP 响应消息。

返回

指定 ResponseMessageResult 响应的 。

属性

适用于