Compartir a través de


OutputFormatter.GetSupportedContentTypes(String, Type) Método

Definición

Obtiene una lista filtrada de tipos de contenido admitidos por para IOutputFormatter y objectTypecontentType.

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 .IOutputFormatter

Implementaciones

Se aplica a