共用方式為


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

在實體主體中協調和格式化的內容值。

適用於