ApiDescription.SupportedResponseTypes Propiedad

Definición

Obtiene la lista de posibles formatos para una respuesta.

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)

Valor de propiedad

IList<ApiResponseType>

Comentarios

Estará vacío si la acción no devuelve ninguna respuesta o si el tipo de respuesta no está claro. Use ProducesAttribute en un método de acción para especificar un tipo de respuesta.

Se aplica a