ApiDescription.SupportedResponseTypes Propriété

Définition

Obtient la liste des formats possibles pour une réponse.

public:
 property System::Collections::Generic::IList<Microsoft::AspNetCore::Mvc::ApiExplorer::ApiResponseType ^> ^ SupportedResponseTypes { System::Collections::Generic::IList<Microsoft::AspNetCore::Mvc::ApiExplorer::ApiResponseType ^> ^ get(); };
public System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.ApiExplorer.ApiResponseType> SupportedResponseTypes { get; }
member this.SupportedResponseTypes : System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.ApiExplorer.ApiResponseType>
Public ReadOnly Property SupportedResponseTypes As IList(Of ApiResponseType)

Valeur de propriété

Remarques

Est vide si l’action ne retourne aucune réponse ou si le type de réponse n’est pas clair. Utilisez ProducesAttribute sur une méthode d’action pour spécifier un type de réponse.

S’applique à