ProducesResponseTypeAttribute<T> Klasse

Definition

Ein Filter, der den Typ des Werts und status von der Aktion zurückgegebenen Code angibt.

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

Typparameter

T

Die Type des Objekts, das in die Antwort geschrieben werden soll.

Vererbung
ProducesResponseTypeAttribute<T>

Konstruktoren

ProducesResponseTypeAttribute<T>(Int32)

Initialisiert eine Instanz von ProducesResponseTypeAttribute.

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

Initialisiert eine Instanz von ProducesResponseTypeAttribute.

Eigenschaften

StatusCode

Ruft den HTTP-status Code der Antwort ab oder legt diese fest.

(Geerbt von ProducesResponseTypeAttribute)
Type

Ruft den Typ des von einer Aktion zurückgegebenen Werts ab oder legt diese fest.

(Geerbt von ProducesResponseTypeAttribute)

Explizite Schnittstellenimplementierungen

IApiResponseMetadataProvider.SetContentTypes(MediaTypeCollection)

Konfiguriert eine Auflistung zulässiger Inhaltstypen, die von der Aktion erstellt werden können.

(Geerbt von ProducesResponseTypeAttribute)

Gilt für: