InputFormatter.GetSupportedContentTypes(String, Type) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
と contentType
の でサポートされているコンテンツ タイプのフィルター処理されたIInputFormatter一覧をobjectType
取得します。
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)
パラメーター
- contentType
- String
サポートされているコンテンツ タイプが必要なコンテンツ タイプ、または null
任意のコンテンツ タイプを使用できる場合。
戻り値
で IInputFormatterサポートされているコンテンツ タイプ。