IApiRequestFormatMetadataProvider.GetSupportedContentTypes Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Získá filtrovaný seznam typů obsahu, které jsou podporovány IInputFormatter pro a objectType 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 podporované typy obsahu požadované, nebo null , pokud je možné použít nějaký typ obsahu.
Návraty
Typy obsahu, které jsou podporovány .IInputFormatter