Aracılığıyla paylaş


IApiRequestFormatMetadataProvider.GetSupportedContentTypes Yöntem

Tanım

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

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)

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 IInputFormatterdesteklenen içerik türleri.

Şunlara uygulanır