InputFormatter.GetSupportedContentTypes(String, Type) Methode

Definition

Ruft eine gefilterte Liste von Inhaltstypen ab, die von für IInputFormatterobjectType und contentTypeunterstützt werden.

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)

Parameter

contentType
String

Der Inhaltstyp, für den die unterstützten Inhaltstypen gewünscht sind, oder null ob ein beliebiger Inhaltstyp verwendet werden kann.

objectType
Type

Die Type , für die die unterstützten Inhaltstypen gewünscht sind.

Gibt zurück

Inhaltstypen, die von IInputFormatterunterstützt werden.

Implementiert

Gilt für: