Compartilhar via


ProducesResponseTypeAttribute Construtores

Definição

Sobrecargas

ProducesResponseTypeAttribute(Int32)

Inicializa uma instância de ProducesResponseTypeAttribute.

ProducesResponseTypeAttribute(Type, Int32)

Inicializa uma instância de ProducesResponseTypeAttribute.

ProducesResponseTypeAttribute(Type, Int32, String, String[])

Inicializa uma instância de ProducesResponseTypeAttribute.

ProducesResponseTypeAttribute(Int32)

Origem:
ProducesResponseTypeAttribute.cs
Origem:
ProducesResponseTypeAttribute.cs
Origem:
ProducesResponseTypeAttribute.cs

Inicializa uma instância de ProducesResponseTypeAttribute.

public:
 ProducesResponseTypeAttribute(int statusCode);
public ProducesResponseTypeAttribute (int statusCode);
new Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute : int -> Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute
Public Sub New (statusCode As Integer)

Parâmetros

statusCode
Int32

A resposta HTTP status código.

Aplica-se a

ProducesResponseTypeAttribute(Type, Int32)

Origem:
ProducesResponseTypeAttribute.cs
Origem:
ProducesResponseTypeAttribute.cs
Origem:
ProducesResponseTypeAttribute.cs

Inicializa uma instância de ProducesResponseTypeAttribute.

public:
 ProducesResponseTypeAttribute(Type ^ type, int statusCode);
public ProducesResponseTypeAttribute (Type type, int statusCode);
new Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute : Type * int -> Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute
Public Sub New (type As Type, statusCode As Integer)

Parâmetros

type
Type

O Type do objeto que será gravado na resposta.

statusCode
Int32

A resposta HTTP status código.

Aplica-se a

ProducesResponseTypeAttribute(Type, Int32, String, String[])

Origem:
ProducesResponseTypeAttribute.cs

Inicializa uma instância de ProducesResponseTypeAttribute.

public ProducesResponseTypeAttribute (Type type, int statusCode, string contentType, params string[] additionalContentTypes);
new Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute : Type * int * string * string[] -> Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute
Public Sub New (type As Type, statusCode As Integer, contentType As String, ParamArray additionalContentTypes As String())

Parâmetros

type
Type

O Type do objeto que será gravado na resposta.

statusCode
Int32

A resposta HTTP status código.

contentType
String

O tipo de conteúdo associado à resposta.

additionalContentTypes
String[]

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

Aplica-se a