Udostępnij za pośrednictwem


OutputFormatter.GetSupportedContentTypes(String, Type) Metoda

Definicja

Pobiera filtrowaną listę typów zawartości, które są obsługiwane przez IOutputFormatter element dla elementów objectType i 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 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 IOutputFormatter.

Implementuje

Dotyczy