IApiResponseTypeMetadataProvider.GetSupportedContentTypes Methode

Definition

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

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)

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 IOutputFormatterunterstützt werden.

Gilt für: