ApiDescription.SupportedRequestFormats 属性

定义

获取请求的可能格式的列表。

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

属性值

注解

如果操作不接受用 特性修饰的参数, [FromBody] 则为空。

适用于