ProducesDefaultResponseTypeAttribute クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
でProducesResponseTypeAttributeカバーされていないすべての HTTP 状態コードの を指定Typeするフィルター。
public ref class ProducesDefaultResponseTypeAttribute sealed : Attribute, Microsoft::AspNetCore::Mvc::ApiExplorer::IApiDefaultResponseMetadataProvider, Microsoft::AspNetCore::Mvc::Filters::IFilterMetadata
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class ProducesDefaultResponseTypeAttribute : Attribute, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDefaultResponseMetadataProvider, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type ProducesDefaultResponseTypeAttribute = class
inherit Attribute
interface IApiDefaultResponseMetadataProvider
interface IApiResponseMetadataProvider
interface IFilterMetadata
Public NotInheritable Class ProducesDefaultResponseTypeAttribute
Inherits Attribute
Implements IApiDefaultResponseMetadataProvider, IFilterMetadata
- 継承
-
ProducesDefaultResponseTypeAttribute
- 属性
- 実装
コンストラクター
ProducesDefaultResponseTypeAttribute() |
ProducesResponseTypeAttribute のインスタンスを初期化します。 |
ProducesDefaultResponseTypeAttribute(Type) |
ProducesResponseTypeAttribute のインスタンスを初期化します。 |
プロパティ
StatusCode |
応答の HTTP 状態コードを取得または設定します。 |
Type |
アクションによって返される値の型を取得または設定します。 |
明示的なインターフェイスの実装
IApiResponseMetadataProvider.SetContentTypes(MediaTypeCollection) |
アクションによって生成できる許可されるコンテンツ タイプのコレクションを構成します。 |