Udostępnij za pośrednictwem


ProducesResponseTypeAttribute Konstruktory

Definicja

Przeciążenia

ProducesResponseTypeAttribute(Int32)

Inicjuje wystąpienie klasy ProducesResponseTypeAttribute.

ProducesResponseTypeAttribute(Type, Int32)

Inicjuje wystąpienie klasy ProducesResponseTypeAttribute.

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

Inicjuje wystąpienie klasy ProducesResponseTypeAttribute.

ProducesResponseTypeAttribute(Int32)

Źródło:
ProducesResponseTypeAttribute.cs
Źródło:
ProducesResponseTypeAttribute.cs
Źródło:
ProducesResponseTypeAttribute.cs

Inicjuje wystąpienie klasy 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

Kod stanu odpowiedzi HTTP.

Dotyczy

ProducesResponseTypeAttribute(Type, Int32)

Źródło:
ProducesResponseTypeAttribute.cs
Źródło:
ProducesResponseTypeAttribute.cs
Źródło:
ProducesResponseTypeAttribute.cs

Inicjuje wystąpienie klasy 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

Obiekt Type , który zostanie zapisany w odpowiedzi.

statusCode
Int32

Kod stanu odpowiedzi HTTP.

Dotyczy

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

Źródło:
ProducesResponseTypeAttribute.cs

Inicjuje wystąpienie klasy 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

Obiekt Type , który zostanie zapisany w odpowiedzi.

statusCode
Int32

Kod stanu odpowiedzi HTTP.

contentType
String

Typ zawartości skojarzony z odpowiedzią.

additionalContentTypes
String[]

Dodatkowe typy zawartości obsługiwane przez odpowiedź.

Dotyczy