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


ProducesResponseTypeAttribute<T> Конструкторы

Определение

Перегрузки

ProducesResponseTypeAttribute<T>(Int32)

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

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

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

ProducesResponseTypeAttribute<T>(Int32)

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

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

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

Параметры

statusCode
Int32

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

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

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

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

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

Параметры

statusCode
Int32

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

contentType
String

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

additionalContentTypes
String[]

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

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