ApiDescription.SupportedResponseTypes 属性

定义

获取响应的可能格式的列表。

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)

属性值

注解

如果操作不返回任何响应,或者响应类型不明确,则为空。 在 ProducesAttribute 操作方法上使用 指定响应类型。

适用于