ProducesResponseTypeAttribute<T> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Constructors
ProducesResponseTypeAttribute<T>(Int32, String, String[]) |
Initializes an instance of ProducesResponseTypeAttribute. |
ProducesResponseTypeAttribute<T>(Int32) |
Initializes an instance of ProducesResponseTypeAttribute. |
Properties
Description |
Gets or sets the description of the response. (Inherited from ProducesResponseTypeAttribute) |
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) |