ProducesResponseTypeAttribute.IApiResponseMetadataProvider.SetContentTypes 메서드

정의

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

 virtual void Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseMetadataProvider.SetContentTypes(Microsoft::AspNetCore::Mvc::Formatters::MediaTypeCollection ^ contentTypes) = Microsoft::AspNetCore::Mvc::ApiExplorer::IApiResponseMetadataProvider::SetContentTypes;
void IApiResponseMetadataProvider.SetContentTypes (Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection contentTypes);
abstract member Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseMetadataProvider.SetContentTypes : Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection -> unit
override this.Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseMetadataProvider.SetContentTypes : Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection -> unit
Sub SetContentTypes (contentTypes As MediaTypeCollection) Implements IApiResponseMetadataProvider.SetContentTypes

매개 변수

contentTypes
MediaTypeCollection

구현

적용 대상