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 して、応答の種類を指定します。

適用対象