ProducesDefaultResponseTypeAttribute Klasa

Definicja

Filtr określający Type wszystkie kody stanu HTTP, które nie są objęte usługą 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
Dziedziczenie
ProducesDefaultResponseTypeAttribute
Atrybuty
Implementuje

Konstruktory

ProducesDefaultResponseTypeAttribute()

Inicjuje wystąpienie klasy ProducesResponseTypeAttribute.

ProducesDefaultResponseTypeAttribute(Type)

Inicjuje wystąpienie klasy ProducesResponseTypeAttribute.

Właściwości

StatusCode

Pobiera lub ustawia kod stanu HTTP odpowiedzi.

Type

Pobiera lub ustawia typ wartości zwracanej przez akcję.

Jawne implementacje interfejsu

IApiResponseMetadataProvider.SetContentTypes(MediaTypeCollection)

Konfiguruje kolekcję dozwolonych typów zawartości, które mogą być generowane przez akcję.

Dotyczy