次の方法で共有


IApiRequestFormatMetadataProvider.GetSupportedContentTypes メソッド

定義

および contentTypeの でサポートされているコンテンツ タイプのフィルター処理されたIInputFormatterリストをobjectType取得します。

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)

パラメーター

contentType
String

サポートされているコンテンツ タイプが必要なコンテンツ タイプ、または null 使用できるコンテンツ タイプ。

objectType
Type

Typeサポートされているコンテンツ タイプが必要な 。

戻り値

IInputFormatterサポートされているコンテンツ タイプ。

適用対象