OutputFormatter.GetSupportedContentTypes(String, Type) 方法

定義

取得 和 支援的內容類型 IOutputFormatterobjectTypecontentType 篩選清單。

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 可以使用任何內容類型時。

objectType
Type

Type需要支援內容類型的 。

傳回

支援的 IOutputFormatter 內容類型。

實作

適用於