ProducesResponseTypeAttribute<T> クラス

定義

アクションによって返される値と状態コードの種類を指定するフィルター。

public class ProducesResponseTypeAttribute<T> : Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute
type ProducesResponseTypeAttribute<'T> = class
    inherit ProducesResponseTypeAttribute
Public Class ProducesResponseTypeAttribute(Of T)
Inherits ProducesResponseTypeAttribute

型パラメーター

T

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

継承
ProducesResponseTypeAttribute<T>

コンストラクター

ProducesResponseTypeAttribute<T>(Int32)

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

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

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

プロパティ

StatusCode

応答の HTTP 状態コードを取得または設定します。

(継承元 ProducesResponseTypeAttribute)
Type

アクションによって返される値の型を取得または設定します。

(継承元 ProducesResponseTypeAttribute)

明示的なインターフェイスの実装

IApiResponseMetadataProvider.SetContentTypes(MediaTypeCollection)

アクションによって生成できる許可されるコンテンツ タイプのコレクションを構成します。

(継承元 ProducesResponseTypeAttribute)

適用対象