Freigeben über


ApiDescription.SupportedResponseTypes Eigenschaft

Definition

Ruft die Liste der möglichen Formate für eine Antwort ab.

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)

Eigenschaftswert

Hinweise

Ist leer, wenn die Aktion keine Antwort zurückgibt oder wenn der Antworttyp unklar ist. Verwenden Sie ProducesAttribute für eine Aktionsmethode, um einen Antworttyp anzugeben.

Gilt für: