Share via


ApiResponseType.Type 속성

정의

응답 또는 null의 CLR 데이터 형식을 가져오거나 설정합니다.

public:
 property Type ^ Type { Type ^ get(); void set(Type ^ value); };
public Type Type { get; set; }
public Type? Type { get; set; }
member this.Type : Type with get, set
Public Property Type As Type

속성 값

설명

작업이 응답을 반환하지 않거나 응답 형식이 명확하지 않은 경우 null이 됩니다. 작업 메서드에서 또는 Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute 을 사용하여 Microsoft.AspNetCore.Mvc.ProducesAttribute 응답 유형을 지정합니다.

적용 대상