ProducesDefaultResponseTypeAttribute Clase
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Filtro que especifica para Type todos los códigos de estado HTTP que no están cubiertos por ProducesResponseTypeAttribute.
public ref class ProducesDefaultResponseTypeAttribute sealed : Attribute, Microsoft::AspNetCore::Mvc::ApiExplorer::IApiDefaultResponseMetadataProvider, Microsoft::AspNetCore::Mvc::Filters::IFilterMetadata
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class ProducesDefaultResponseTypeAttribute : Attribute, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDefaultResponseMetadataProvider, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type ProducesDefaultResponseTypeAttribute = class
inherit Attribute
interface IApiDefaultResponseMetadataProvider
interface IApiResponseMetadataProvider
interface IFilterMetadata
Public NotInheritable Class ProducesDefaultResponseTypeAttribute
Inherits Attribute
Implements IApiDefaultResponseMetadataProvider, IFilterMetadata
- Herencia
-
ProducesDefaultResponseTypeAttribute
- Atributos
- Implementaciones
Constructores
ProducesDefaultResponseTypeAttribute() |
Inicializa una instancia de ProducesResponseTypeAttribute. |
ProducesDefaultResponseTypeAttribute(Type) |
Inicializa una instancia de ProducesResponseTypeAttribute. |
Propiedades
StatusCode |
Obtiene o establece el código de estado HTTP de la respuesta. |
Type |
Obtiene o establece el tipo del valor devuelto por una acción. |
Implementaciones de interfaz explícitas
IApiResponseMetadataProvider.SetContentTypes(MediaTypeCollection) |
Configura una colección de tipos de contenido permitidos que la acción puede generar. |