ProducesResponseTypeAttribute<T> Třída

Definice

Filtr, který určuje typ hodnoty a stavového kódu vráceného akcí.

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

Parametry typu

T

Objekt Type , který bude zapsán v odpovědi.

Dědičnost
ProducesResponseTypeAttribute<T>

Konstruktory

ProducesResponseTypeAttribute<T>(Int32)

Inicializuje instanci .ProducesResponseTypeAttribute

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

Inicializuje instanci .ProducesResponseTypeAttribute

Vlastnosti

StatusCode

Získá nebo nastaví stavový kód HTTP odpovědi.

(Zděděno od ProducesResponseTypeAttribute)
Type

Získá nebo nastaví typ hodnoty vrácené akcí.

(Zděděno od ProducesResponseTypeAttribute)

Explicitní implementace rozhraní

IApiResponseMetadataProvider.SetContentTypes(MediaTypeCollection)

Nakonfiguruje kolekci povolených typů obsahu, které může akce vytvořit.

(Zděděno od ProducesResponseTypeAttribute)

Platí pro