Share via


ProducesResponseTypeAttribute<T> Konstruktory

Definice

Přetížení

ProducesResponseTypeAttribute<T>(Int32)

Inicializuje instanci .ProducesResponseTypeAttribute

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

Inicializuje instanci .ProducesResponseTypeAttribute

ProducesResponseTypeAttribute<T>(Int32)

Inicializuje instanci .ProducesResponseTypeAttribute

public ProducesResponseTypeAttribute (int statusCode);
new Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute<'T> : int -> Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute<'T>
Public Sub New (statusCode As Integer)

Parametry

statusCode
Int32

Stavový kód odpovědi HTTP.

Platí pro

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

Inicializuje instanci .ProducesResponseTypeAttribute

public ProducesResponseTypeAttribute (int statusCode, string contentType, params string[] additionalContentTypes);
new Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute<'T> : int * string * string[] -> Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute<'T>
Public Sub New (statusCode As Integer, contentType As String, ParamArray additionalContentTypes As String())

Parametry

statusCode
Int32

Stavový kód odpovědi HTTP.

contentType
String

Typ obsahu přidružený k odpovědi.

additionalContentTypes
String[]

Odpověď podporuje další typy obsahu.

Platí pro