ProducesDefaultResponseTypeAttribute Classe

Definição

Um filtro que especifica o Type para todos os códigos de status HTTP que não são cobertos 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
Herança
ProducesDefaultResponseTypeAttribute
Atributos
Implementações

Construtores

ProducesDefaultResponseTypeAttribute()

Inicializa uma instância de ProducesResponseTypeAttribute.

ProducesDefaultResponseTypeAttribute(Type)

Inicializa uma instância de ProducesResponseTypeAttribute.

Propriedades

StatusCode

Obtém ou define o código de status HTTP da resposta.

Type

Obtém ou define o tipo do valor retornado por uma ação.

Implantações explícitas de interface

IApiResponseMetadataProvider.SetContentTypes(MediaTypeCollection)

Configura uma coleção de tipos de conteúdo permitidos que podem ser produzidos pela ação.

Aplica-se a