IApiResponseTypeMetadataProvider.GetSupportedContentTypes Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Ruft eine gefilterte Liste von Inhaltstypen ab, die von für IOutputFormatterobjectType
und contentType
unterstü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.
Gibt zurück
Inhaltstypen, die von IOutputFormatterunterstützt werden.