Bagikan melalui


ApiDescription.SupportedResponseTypes Properti

Definisi

Mendapatkan daftar kemungkinan format untuk respons.

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)

Nilai Properti

Keterangan

Akan kosong jika tindakan tidak mengembalikan respons, atau jika jenis respons tidak jelas. Gunakan ProducesAttribute pada metode tindakan untuk menentukan jenis respons.

Berlaku untuk