Condividi tramite


IApiRequestFormatMetadataProvider.GetSupportedContentTypes Metodo

Definizione

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

Parametri

contentType
String

Tipo di contenuto per il quale sono desiderati 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.

Si applica a