ProducesResponseTypeAttribute コンストラクター

定義

オーバーロード

ProducesResponseTypeAttribute(Int32)

ProducesResponseTypeAttribute のインスタンスを初期化します。

ProducesResponseTypeAttribute(Type, Int32)

ProducesResponseTypeAttribute のインスタンスを初期化します。

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

ProducesResponseTypeAttribute のインスタンスを初期化します。

ProducesResponseTypeAttribute(Int32)

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 のインスタンスを初期化します。

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 のインスタンスを初期化します。

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[]

応答でサポートされる追加のコンテンツ タイプ。

適用対象