Aracılığıyla paylaş


OutputFormatter.GetSupportedContentTypes(String, Type) Yöntem

Tanım

ve contentTypeiçin objectType tarafından IOutputFormatter desteklenen içerik türlerinin filtrelenmiş bir listesini alır.

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)

Parametreler

contentType
String

Desteklenen içerik türlerinin istendiği içerik türü veya null herhangi bir içerik türü kullanılabilir.

objectType
Type

Type Desteklenen içerik türlerinin istendiği içerik.

Döndürülenler

tarafından IOutputFormatterdesteklenen içerik türleri.

Uygulamalar

Şunlara uygulanır