Bagikan melalui


ProducesResponseTypeAttribute Konstruktor

Definisi

Overload

ProducesResponseTypeAttribute(Int32)

Menginisialisasi instans ProducesResponseTypeAttribute.

ProducesResponseTypeAttribute(Type, Int32)

Menginisialisasi instans ProducesResponseTypeAttribute.

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

Menginisialisasi instans ProducesResponseTypeAttribute.

ProducesResponseTypeAttribute(Int32)

Sumber:
ProducesResponseTypeAttribute.cs
Sumber:
ProducesResponseTypeAttribute.cs
Sumber:
ProducesResponseTypeAttribute.cs

Menginisialisasi instans 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)

Parameter

statusCode
Int32

Kode status respons HTTP.

Berlaku untuk

ProducesResponseTypeAttribute(Type, Int32)

Sumber:
ProducesResponseTypeAttribute.cs
Sumber:
ProducesResponseTypeAttribute.cs
Sumber:
ProducesResponseTypeAttribute.cs

Menginisialisasi instans 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)

Parameter

type
Type

Objek Type yang akan ditulis dalam respons.

statusCode
Int32

Kode status respons HTTP.

Berlaku untuk

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

Sumber:
ProducesResponseTypeAttribute.cs

Menginisialisasi instans 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())

Parameter

type
Type

Objek Type yang akan ditulis dalam respons.

statusCode
Int32

Kode status respons HTTP.

contentType
String

Tipe konten yang terkait dengan respons.

additionalContentTypes
String[]

Jenis konten tambahan yang didukung oleh respons.

Berlaku untuk