Udostępnij za pośrednictwem


IApiRequestFormatMetadataProvider.GetSupportedContentTypes Metoda

Definicja

Pobiera filtrowaną listę typów zawartości, które są obsługiwane przez IInputFormatter element dla elementów objectType i contentType.

public:
 System::Collections::Generic::IReadOnlyList<System::String ^> ^ GetSupportedContentTypes(System::String ^ contentType, Type ^ objectType);
public System.Collections.Generic.IReadOnlyList<string> GetSupportedContentTypes (string contentType, Type objectType);
public System.Collections.Generic.IReadOnlyList<string>? GetSupportedContentTypes (string contentType, Type objectType);
abstract member GetSupportedContentTypes : string * Type -> System.Collections.Generic.IReadOnlyList<string>
Public Function GetSupportedContentTypes (contentType As String, objectType As Type) As IReadOnlyList(Of String)

Parametry

contentType
String

Typ zawartości, dla którego są wymagane obsługiwane typy zawartości lub null jeśli można użyć dowolnego typu zawartości.

objectType
Type

Typy Type zawartości, dla których są wymagane obsługiwane typy zawartości.

Zwraca

Typy zawartości obsługiwane przez program IInputFormatter.

Dotyczy