OutputFormatter.GetSupportedContentTypes(String, Type) Метод

Определение

Возвращает отфильтрованный список типов контента, поддерживаемых IOutputFormatter для objectType и 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)

Параметры

contentType
String

Тип контента, для которого нужны поддерживаемые типы контента, или null , если можно использовать какой-либо тип контента.

objectType
Type

Объект , Type для которого нужны поддерживаемые типы контента.

Возвращаемое значение

Типы контента, поддерживаемые IOutputFormatter.

Реализации

Применяется к