ProducesAttribute<T> 클래스

정의

작업이 반환할 예상 Type 및 지원되는 응답 콘텐츠 형식을 지정하는 필터입니다. 값은 ContentTypes 를 설정하는 ContentTypes데 사용됩니다.

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

형식 매개 변수

T

Type 응답에 기록될 개체의 입니다.

상속
ProducesAttribute<T>

설명

의 파생된 제네릭 변형입니다 ProducesAttribute. 두 특성 중 하나의 instance 대상에만 제공되는지 확인합니다.

생성자

ProducesAttribute<T>()

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

속성

ContentTypes

지원되는 응답 콘텐츠 형식을 가져오거나 설정합니다. 를 설정하는 ContentTypes데 사용됩니다.

(다음에서 상속됨 ProducesAttribute)
Order

필터 실행 순서를 결정하는 순서 값을 가져옵니다. 필터는 속성의 오름차순 숫자 값으로 Order 실행됩니다.

(다음에서 상속됨 ProducesAttribute)
StatusCode

응답의 HTTP 상태 코드를 가져옵니다.

(다음에서 상속됨 ProducesAttribute)
Type

작업의 낙관적 반환 형식을 가져옵니다.

(다음에서 상속됨 ProducesAttribute)

메서드

OnResultExecuted(ResultExecutedContext)

작업 결과가 실행된 후 호출됩니다.

(다음에서 상속됨 ProducesAttribute)
OnResultExecuting(ResultExecutingContext)

작업 결과가 실행되기 전에 호출됩니다.

(다음에서 상속됨 ProducesAttribute)
SetContentTypes(MediaTypeCollection)

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

(다음에서 상속됨 ProducesAttribute)

적용 대상