Поделиться через


ProducesResponseTypeAttribute Конструкторы

Определение

Перегрузки

ProducesResponseTypeAttribute(Int32)

Инициализирует экземпляр ProducesResponseTypeAttribute.

ProducesResponseTypeAttribute(Type, Int32)

Инициализирует экземпляр ProducesResponseTypeAttribute.

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

Инициализирует экземпляр ProducesResponseTypeAttribute.

ProducesResponseTypeAttribute(Int32)

Исходный код:
ProducesResponseTypeAttribute.cs
Исходный код:
ProducesResponseTypeAttribute.cs
Исходный код:
ProducesResponseTypeAttribute.cs

Инициализирует экземпляр 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)

Параметры

statusCode
Int32

Код состояния HTTP-ответа.

Применяется к

ProducesResponseTypeAttribute(Type, Int32)

Исходный код:
ProducesResponseTypeAttribute.cs
Исходный код:
ProducesResponseTypeAttribute.cs
Исходный код:
ProducesResponseTypeAttribute.cs

Инициализирует экземпляр 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)

Параметры

type
Type

Объект Type объекта , который будет записан в ответе.

statusCode
Int32

Код состояния HTTP-ответа.

Применяется к

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

Исходный код:
ProducesResponseTypeAttribute.cs

Инициализирует экземпляр 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())

Параметры

type
Type

Объект Type объекта , который будет записан в ответе.

statusCode
Int32

Код состояния HTTP-ответа.

contentType
String

Тип контента, связанный с ответом.

additionalContentTypes
String[]

Дополнительные типы контента, поддерживаемые ответом.

Применяется к