共用方式為


ProducesResponseTypeAttribute 建構函式

定義

多載

ProducesResponseTypeAttribute(Int32)

初始化 ProducesResponseTypeAttribute 的執行個體。

ProducesResponseTypeAttribute(Type, Int32)

初始化 ProducesResponseTypeAttribute 的執行個體。

ProducesResponseTypeAttribute(Type, Int32, String, String[])

初始化 ProducesResponseTypeAttribute 的執行個體。

ProducesResponseTypeAttribute(Int32)

來源:
ProducesResponseTypeAttribute.cs
來源:
ProducesResponseTypeAttribute.cs
來源:
ProducesResponseTypeAttribute.cs

初始化 ProducesResponseTypeAttribute 的執行個體。

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

參數

statusCode
Int32

HTTP 回應狀態碼。

適用於

ProducesResponseTypeAttribute(Type, Int32)

來源:
ProducesResponseTypeAttribute.cs
來源:
ProducesResponseTypeAttribute.cs
來源:
ProducesResponseTypeAttribute.cs

初始化 ProducesResponseTypeAttribute 的執行個體。

public:
 ProducesResponseTypeAttribute(Type ^ type, int statusCode);
public ProducesResponseTypeAttribute (Type type, int statusCode);
new Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute : Type * int -> Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute
Public Sub New (type As Type, statusCode As Integer)

參數

type
Type

Type要在回應中寫入之 物件的 。

statusCode
Int32

HTTP 回應狀態碼。

適用於

ProducesResponseTypeAttribute(Type, Int32, String, String[])

來源:
ProducesResponseTypeAttribute.cs

初始化 ProducesResponseTypeAttribute 的執行個體。

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

參數

type
Type

Type要在回應中寫入之 物件的 。

statusCode
Int32

HTTP 回應狀態碼。

contentType
String

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

additionalContentTypes
String[]

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

適用於