InputFormatter.GetSupportedContentTypes(String, Type) Method

Definition

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

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.

Implements

Applies to