Compartir a través de


InputFormatter.GetSupportedContentTypes(String, Type) Método

Definición

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

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

Tipos de contenido admitidos por .IInputFormatter

Implementaciones

Se aplica a