ConsumesAttribute.SetContentTypes(MediaTypeCollection) 메서드

정의

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

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

매개 변수

contentTypes
MediaTypeCollection

MediaTypeCollection입니다.

구현

적용 대상