ProducesResponseTypeMetadata Class

Definition

Specifies the type of the value and status code returned by the action.

public sealed class ProducesResponseTypeMetadata : Microsoft.AspNetCore.Http.Metadata.IProducesResponseTypeMetadata
type ProducesResponseTypeMetadata = class
    interface IProducesResponseTypeMetadata
Public NotInheritable Class ProducesResponseTypeMetadata
Implements IProducesResponseTypeMetadata
Inheritance
ProducesResponseTypeMetadata
Implements

Constructors

ProducesResponseTypeMetadata(Int32, Type, String[])

Initializes an instance of ProducesResponseTypeMetadata.

Properties

ContentTypes

Gets or sets the content types associated with the response.

StatusCode

Gets or sets the HTTP status code of the response.

Type

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

Methods

ToString()

Returns a string that represents the current object.

Applies to