Share via


ProducesResponseTypeAttribute Konstruktory

Definice

Přetížení

ProducesResponseTypeAttribute(Int32)

Inicializuje instanci .ProducesResponseTypeAttribute

ProducesResponseTypeAttribute(Type, Int32)

Inicializuje instanci .ProducesResponseTypeAttribute

ProducesResponseTypeAttribute(Type, Int32, String, String[])

Inicializuje instanci .ProducesResponseTypeAttribute

ProducesResponseTypeAttribute(Int32)

Zdroj:
ProducesResponseTypeAttribute.cs
Zdroj:
ProducesResponseTypeAttribute.cs

Inicializuje instanci .ProducesResponseTypeAttribute

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

Parametry

statusCode
Int32

Stavový kód odpovědi HTTP.

Platí pro

ProducesResponseTypeAttribute(Type, Int32)

Zdroj:
ProducesResponseTypeAttribute.cs
Zdroj:
ProducesResponseTypeAttribute.cs

Inicializuje instanci .ProducesResponseTypeAttribute

public:
 ProducesResponseTypeAttribute(Type ^ type, int statusCode);
public ProducesResponseTypeAttribute (Type type, int statusCode);
new Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute : Type * int -> Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute
Public Sub New (type As Type, statusCode As Integer)

Parametry

type
Type

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

statusCode
Int32

Stavový kód odpovědi HTTP.

Platí pro

ProducesResponseTypeAttribute(Type, Int32, String, String[])

Inicializuje instanci .ProducesResponseTypeAttribute

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

Parametry

type
Type

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

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