共用方式為


ProducesResponseTypeAttribute<T> 建構函式

定義

多載

ProducesResponseTypeAttribute<T>(Int32)

初始化 ProducesResponseTypeAttribute 的執行個體。

ProducesResponseTypeAttribute<T>(Int32, String, String[])

初始化 ProducesResponseTypeAttribute 的執行個體。

ProducesResponseTypeAttribute<T>(Int32)

來源:
ProducesResponseTypeOfTAttribute.cs

初始化 ProducesResponseTypeAttribute 的執行個體。

public ProducesResponseTypeAttribute (int statusCode);
new Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute<'T> : int -> Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute<'T>
Public Sub New (statusCode As Integer)

參數

statusCode
Int32

HTTP 回應狀態碼。

適用於

ProducesResponseTypeAttribute<T>(Int32, String, String[])

來源:
ProducesResponseTypeOfTAttribute.cs

初始化 ProducesResponseTypeAttribute 的執行個體。

public ProducesResponseTypeAttribute (int statusCode, string contentType, params string[] additionalContentTypes);
new Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute<'T> : int * string * string[] -> Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute<'T>
Public Sub New (statusCode As Integer, contentType As String, ParamArray additionalContentTypes As String())

參數

statusCode
Int32

HTTP 回應狀態碼。

contentType
String

與回應相關聯的內容類型。

additionalContentTypes
String[]

回應支援的其他內容類型。

適用於