ProducesResponseTypeAttribute<T> Класс

Определение

Фильтр, указывающий тип значения и код состояния, возвращаемые действием.

public class ProducesResponseTypeAttribute<T> : Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute
type ProducesResponseTypeAttribute<'T> = class
    inherit ProducesResponseTypeAttribute
Public Class ProducesResponseTypeAttribute(Of T)
Inherits ProducesResponseTypeAttribute

Параметры типа

T

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

Наследование
ProducesResponseTypeAttribute<T>

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

ProducesResponseTypeAttribute<T>(Int32)

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

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

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

Свойства

StatusCode

Возвращает или задает код состояния HTTP ответа.

(Унаследовано от ProducesResponseTypeAttribute)
Type

Возвращает или задает тип значения, возвращаемого действием.

(Унаследовано от ProducesResponseTypeAttribute)

Явные реализации интерфейса

IApiResponseMetadataProvider.SetContentTypes(MediaTypeCollection)

Настраивает коллекцию разрешенных типов контента, которые могут быть созданы действием .

(Унаследовано от ProducesResponseTypeAttribute)

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