NegotiatedContentResult<T>(HttpStatusCode, T) 构造函数

定义

使用所提供的值初始化 NegotiatedContentResult<T> 类的一个新实例。

public NegotiatedContentResult (System.Net.HttpStatusCode statusCode, T content);
new System.Web.Http.NegotiatedContentResult<'T> : System.Net.HttpStatusCode * 'T -> System.Web.Http.NegotiatedContentResult<'T>
Public Sub New (statusCode As HttpStatusCode, content As T)

参数

statusCode
HttpStatusCode

响应消息的 HTTP 状态代码。

content
T

要在实体正文中协商和设置格式的内容值。

适用于