OutputFormatter.GetSupportedContentTypes(String, Type) Metoda

Definice

Získá filtrovaný seznam typů obsahu, které jsou podporovány IOutputFormatter pro objectType a contentType.

public:
 virtual System::Collections::Generic::IReadOnlyList<System::String ^> ^ GetSupportedContentTypes(System::String ^ contentType, Type ^ objectType);
public virtual System.Collections.Generic.IReadOnlyList<string> GetSupportedContentTypes (string contentType, Type objectType);
public virtual System.Collections.Generic.IReadOnlyList<string>? GetSupportedContentTypes (string contentType, Type objectType);
abstract member GetSupportedContentTypes : string * Type -> System.Collections.Generic.IReadOnlyList<string>
override this.GetSupportedContentTypes : string * Type -> System.Collections.Generic.IReadOnlyList<string>
Public Overridable 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 lze použít nějaký typ obsahu.

objectType
Type

Požadované Type podporované typy obsahu.

Návraty

IReadOnlyList<String>

Typy obsahu, které podporuje IOutputFormatter.

Implementuje

Platí pro