IApiRequestFormatMetadataProvider.GetSupportedContentTypes Method

Definition

Gets a filtered list of content types which are supported by the IInputFormatter for the objectType and 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)

Parameters

contentType
String

The content type for which the supported content types are desired, or null if any content type can be used.

objectType
Type

The Type for which the supported content types are desired.

Returns

Content types which are supported by the IInputFormatter.

Applies to