ConsumesAttribute クラス
定義
サポートされている要求のコンテンツの種類を指定するフィルター。 ContentTypes は、複数の一致がある場合にアクションを選択するために使用されます。
public ref class ConsumesAttribute : Attribute, Microsoft::AspNetCore::Mvc::ActionConstraints::IActionConstraint, Microsoft::AspNetCore::Mvc::ApiExplorer::IApiRequestMetadataProvider, Microsoft::AspNetCore::Mvc::Filters::IResourceFilter, Microsoft::AspNetCore::Mvc::Internal::IConsumesActionConstraint
public ref class ConsumesAttribute : Attribute, Microsoft::AspNetCore::Mvc::ActionConstraints::IActionConstraint, Microsoft::AspNetCore::Mvc::ApiExplorer::IApiRequestMetadataProvider, Microsoft::AspNetCore::Mvc::Filters::IResourceFilter
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public class ConsumesAttribute : Attribute, Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiRequestMetadataProvider, Microsoft.AspNetCore.Mvc.Filters.IResourceFilter, Microsoft.AspNetCore.Mvc.Internal.IConsumesActionConstraint
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public class ConsumesAttribute : Attribute, Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiRequestMetadataProvider, Microsoft.AspNetCore.Mvc.Filters.IResourceFilter
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type ConsumesAttribute = class
inherit Attribute
interface IResourceFilter
interface IFilterMetadata
interface IConsumesActionConstraint
interface IActionConstraint
interface IActionConstraintMetadata
interface IApiRequestMetadataProvider
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type ConsumesAttribute = class
inherit Attribute
interface IActionConstraint
interface IActionConstraintMetadata
interface IApiRequestMetadataProvider
interface IFilterMetadata
interface IResourceFilter
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type ConsumesAttribute = class
inherit Attribute
interface IResourceFilter
interface IFilterMetadata
interface IActionConstraint
interface IActionConstraintMetadata
interface IApiRequestMetadataProvider
Public Class ConsumesAttribute
Inherits Attribute
Implements IActionConstraint, IApiRequestMetadataProvider, IConsumesActionConstraint, IResourceFilter
Public Class ConsumesAttribute
Inherits Attribute
Implements IActionConstraint, IApiRequestMetadataProvider, IResourceFilter
- 継承
-
ConsumesAttribute
- 属性
- 実装
-
IActionConstraint IActionConstraintMetadata IApiRequestMetadataProvider IFilterMetadata IResourceFilter Microsoft.AspNetCore.Mvc.Internal.IConsumesActionConstraint
コンストラクター
ConsumesAttribute(String, String[]) |
ConsumesAttribute の新しいインスタンスを作成します。 |
フィールド
ConsumesActionConstraintOrder |
使用属性の順序。 |
プロパティ
ContentTypes |
サポートされている要求のコンテンツの種類を取得または設定します。 複数の一致がある場合にアクションを選択するために使用します。 |
メソッド
Accept(ActionConstraintContext) |
アクションが選択の有効な候補であるかどうかを判断します。 |
OnResourceExecuted(ResourceExecutedContext) |
リソースフィルターを実行します。 パイプラインの残りの部分の実行後に呼び出されます。 |
OnResourceExecuting(ResourceExecutingContext) |
リソースフィルターを実行します。 パイプラインの残りの部分の実行前に呼び出されます。 |
SetContentTypes(MediaTypeCollection) |
アクションによって使用できるコンテンツの種類のコレクションを構成します。 |
明示的なインターフェイスの実装
IActionConstraint.Order |