ProducesResponseTypeAttribute 클래스

정의

값의 형식을 지정하고 작업에서 반환하는 코드를 상태 필터입니다.

public ref class ProducesResponseTypeAttribute : Attribute, Microsoft::AspNetCore::Mvc::ApiExplorer::IApiResponseMetadataProvider, Microsoft::AspNetCore::Mvc::Filters::IFilterMetadata
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)]
public class ProducesResponseTypeAttribute : Attribute, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseMetadataProvider, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)>]
type ProducesResponseTypeAttribute = class
    inherit Attribute
    interface IApiResponseMetadataProvider
    interface IFilterMetadata
Public Class ProducesResponseTypeAttribute
Inherits Attribute
Implements IApiResponseMetadataProvider, IFilterMetadata
상속
ProducesResponseTypeAttribute
파생
특성
구현

생성자

ProducesResponseTypeAttribute(Int32)

ProducesResponseTypeAttribute의 인스턴스를 초기화합니다.

ProducesResponseTypeAttribute(Type, Int32)

ProducesResponseTypeAttribute의 인스턴스를 초기화합니다.

ProducesResponseTypeAttribute(Type, Int32, String, String[])

ProducesResponseTypeAttribute의 인스턴스를 초기화합니다.

속성

StatusCode

응답의 HTTP 상태 코드를 가져오거나 설정합니다.

Type

작업에서 반환되는 값의 형식을 가져오거나 설정합니다.

명시적 인터페이스 구현

IApiResponseMetadataProvider.SetContentTypes(MediaTypeCollection)

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

적용 대상