ProducesDefaultResponseTypeAttribute Clase

Definición

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.

Se aplica a