ProducesDefaultResponseTypeAttribute 클래스

정의

에서 다루지 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)

작업에서 생성할 수 있는 허용된 콘텐츠 형식의 컬렉션을 구성합니다.

적용 대상