Udostępnij przez


IApiResponseMetadataProvider.SetContentTypes(MediaTypeCollection) Metoda

Definicja

Konfiguruje kolekcję dozwolonych typów zawartości, które mogą być generowane przez akcję.

public:
 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
Public Sub SetContentTypes (contentTypes As MediaTypeCollection)

Parametry

contentTypes
MediaTypeCollection

Dotyczy