ProducesResponseTypeAttribute<T> Klasa

Definicja

Filtr określający typ wartości i kod stanu zwrócony przez akcję.

public class ProducesResponseTypeAttribute<T> : Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute
type ProducesResponseTypeAttribute<'T> = class
    inherit ProducesResponseTypeAttribute
Public Class ProducesResponseTypeAttribute(Of T)
Inherits ProducesResponseTypeAttribute

Parametry typu

T

Obiekt Type , który ma zostać zapisany w odpowiedzi.

Dziedziczenie
ProducesResponseTypeAttribute<T>

Konstruktory

ProducesResponseTypeAttribute<T>(Int32)

Inicjuje wystąpienie klasy ProducesResponseTypeAttribute.

ProducesResponseTypeAttribute<T>(Int32, String, String[])

Inicjuje wystąpienie klasy ProducesResponseTypeAttribute.

Właściwości

StatusCode

Pobiera lub ustawia kod stanu HTTP odpowiedzi.

(Odziedziczone po ProducesResponseTypeAttribute)
Type

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

(Odziedziczone po ProducesResponseTypeAttribute)

Jawne implementacje interfejsu

IApiResponseMetadataProvider.SetContentTypes(MediaTypeCollection)

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

(Odziedziczone po ProducesResponseTypeAttribute)

Dotyczy