ProducesResponseTypeAttribute<T> Class

Definition

A filter that specifies the type of the value and status code returned by the action.

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

Type Parameters

T

The Type of object that is going to be written in the response.

Inheritance
ProducesResponseTypeAttribute<T>

Constructors

ProducesResponseTypeAttribute<T>(Int32)

Initializes an instance of ProducesResponseTypeAttribute.

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

Initializes an instance of ProducesResponseTypeAttribute.

Properties

StatusCode

Gets or sets the HTTP status code of the response.

(Inherited from ProducesResponseTypeAttribute)
Type

Gets or sets the type of the value returned by an action.

(Inherited from ProducesResponseTypeAttribute)

Explicit Interface Implementations

IApiResponseMetadataProvider.SetContentTypes(MediaTypeCollection)

Configures a collection of allowed content types which can be produced by the action.

(Inherited from ProducesResponseTypeAttribute)

Applies to