Udostępnij przez


IApiRequestMetadataProvider.SetContentTypes(MediaTypeCollection) Metoda

Definicja

Konfiguruje kolekcję dozwolonych typów zawartości, które mogą być używane 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

Dotyczy