Sdílet prostřednictvím


IApiRequestFormatMetadataProvider.GetSupportedContentTypes Metoda

Definice

Získá filtrovaný seznam typů obsahu, které jsou podporovány IInputFormatter pro objectType a 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 obsahu, pro který jsou požadované podporované typy obsahu, nebo null jestli je možné použít jakýkoli typ obsahu.

objectType
Type

Pro Type které jsou požadované podporované typy obsahu.

Návraty

Typy obsahu podporované nástrojem IInputFormatter.

Platí pro