IApiRequestFormatMetadataProvider.GetSupportedContentTypes Método

Definición

Obtiene una lista filtrada de tipos de contenido admitidos por para IInputFormatter y objectType 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)

Parámetros

contentType
String

Tipo de contenido para el que se desean los tipos de contenido admitidos o null si se puede usar cualquier tipo de contenido.

objectType
Type

para Type el que se desean los tipos de contenido admitidos.

Devoluciones

IReadOnlyList<String>

Tipos de contenido admitidos por .IInputFormatter

Se aplica a