Share via


ProducesAttribute Konstruktory

Definice

Přetížení

ProducesAttribute(Type)

Inicializuje instanci .ProducesAttribute

ProducesAttribute(String, String[])

Inicializuje instanci ProducesAttribute s povolenými typy obsahu.

ProducesAttribute(Type)

Zdroj:
ProducesAttribute.cs
Zdroj:
ProducesAttribute.cs

Inicializuje instanci .ProducesAttribute

public:
 ProducesAttribute(Type ^ type);
public ProducesAttribute (Type type);
new Microsoft.AspNetCore.Mvc.ProducesAttribute : Type -> Microsoft.AspNetCore.Mvc.ProducesAttribute
Public Sub New (type As Type)

Parametry

type
Type

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

Platí pro

ProducesAttribute(String, String[])

Zdroj:
ProducesAttribute.cs
Zdroj:
ProducesAttribute.cs

Inicializuje instanci ProducesAttribute s povolenými typy obsahu.

public:
 ProducesAttribute(System::String ^ contentType, ... cli::array <System::String ^> ^ additionalContentTypes);
public ProducesAttribute (string contentType, params string[] additionalContentTypes);
new Microsoft.AspNetCore.Mvc.ProducesAttribute : string * string[] -> Microsoft.AspNetCore.Mvc.ProducesAttribute
Public Sub New (contentType As String, ParamArray additionalContentTypes As String())

Parametry

contentType
String

Povolený typ obsahu pro odpověď.

additionalContentTypes
String[]

Další povolené typy obsahu pro odpověď

Platí pro