Compartilhar via


ProducesResponseTypeMetadata(Int32, Type, String[]) Construtor

Definição

Inicializa uma instância de ProducesResponseTypeMetadata.

public ProducesResponseTypeMetadata (int statusCode, Type? type = default, string[]? contentTypes = default);
new Microsoft.AspNetCore.Http.ProducesResponseTypeMetadata : int * Type * string[] -> Microsoft.AspNetCore.Http.ProducesResponseTypeMetadata
Public Sub New (statusCode As Integer, Optional type As Type = Nothing, Optional contentTypes As String() = Nothing)

Parâmetros

statusCode
Int32

A resposta HTTP status código.

type
Type

O Type do objeto que será gravado na resposta.

contentTypes
String[]

Tipos de conteúdo compatíveis com a resposta.

Aplica-se a