Bagikan melalui


OutputFormatter.GetSupportedContentTypes(String, Type) Metode

Definisi

Mendapatkan daftar tipe konten yang difilter yang didukung oleh IOutputFormatter untuk objectType dan contentType.

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)

Parameter

contentType
String

Tipe konten yang diinginkan tipe isi yang didukung, atau null jika tipe isi apa pun dapat digunakan.

objectType
Type

jenis Type konten yang didukung diinginkan.

Mengembalikan

Jenis konten yang didukung oleh IOutputFormatter.

Penerapan

Berlaku untuk