Share via


ProducesResponseTypeMetadata(Int32, Type, String[]) Konstruktor

Definice

Inicializuje instanci .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)

Parametry

statusCode
Int32

Stavový kód odpovědi HTTP.

type
Type

Objekt Type , který bude zapsán v odpovědi.

contentTypes
String[]

Typy obsahu podporované odpovědí

Platí pro