ProducesAttribute コンストラクター

定義

オーバーロード

ProducesAttribute(Type)

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

ProducesAttribute(String, String[])

許可されたコンテンツ タイプを使用して の ProducesAttribute インスタンスを初期化します。

ProducesAttribute(Type)

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

public:
 ProducesAttribute(Type ^ type);
public ProducesAttribute (Type type);
new Microsoft.AspNetCore.Mvc.ProducesAttribute : Type -> Microsoft.AspNetCore.Mvc.ProducesAttribute
Public Sub New (type As Type)

パラメーター

type
Type

Type応答で書き込まれるオブジェクトの 。

適用対象

ProducesAttribute(String, String[])

許可されたコンテンツ タイプを使用して の ProducesAttribute インスタンスを初期化します。

public:
 ProducesAttribute(System::String ^ contentType, ... cli::array <System::String ^> ^ additionalContentTypes);
public ProducesAttribute (string contentType, params string[] additionalContentTypes);
new Microsoft.AspNetCore.Mvc.ProducesAttribute : string * string[] -> Microsoft.AspNetCore.Mvc.ProducesAttribute
Public Sub New (contentType As String, ParamArray additionalContentTypes As String())

パラメーター

contentType
String

応答に対して許可されるコンテンツ タイプ。

additionalContentTypes
String[]

応答に対して許可される追加のコンテンツ タイプ。

適用対象