IApiRequestFormatMetadataProvider.GetSupportedContentTypes 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得 和 支援的內容類型 IInputFormatterobjectType
contentType
篩選清單。
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)
參數
- contentType
- String
需要支援內容類型的內容類型,或者 null
可以使用任何內容類型時。
傳回
支援的 IInputFormatter 內容類型。