Condividi tramite


InputFormatter.GetSupportedContentTypes(String, Type) Metodo

Definizione

Ottiene un elenco filtrato di tipi di contenuto supportati da IInputFormatter per objectType e 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)

Parametri

contentType
String

Tipo di contenuto per il quale si desiderano i tipi di contenuto supportati o null se è possibile usare qualsiasi tipo di contenuto.

objectType
Type

Oggetto Type per il quale sono desiderati i tipi di contenuto supportati.

Restituisce

Tipi di contenuto supportati da IInputFormatter.

Implementazioni

Si applica a