ProducesAttribute Konstruktoren

Definition

Überlädt

ProducesAttribute(Type)

Initialisiert eine Instanz von ProducesAttribute.

ProducesAttribute(String, String[])

Initialisiert eine instance von ProducesAttribute mit zulässigen Inhaltstypen.

ProducesAttribute(Type)

Initialisiert eine Instanz von 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)

Parameter

type
Type

Die Type des Objekts, das in die Antwort geschrieben werden soll.

Gilt für:

ProducesAttribute(String, String[])

Initialisiert eine instance von ProducesAttribute mit zulässigen Inhaltstypen.

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())

Parameter

contentType
String

Der zulässige Inhaltstyp für eine Antwort.

additionalContentTypes
String[]

Zusätzliche zulässige Inhaltstypen für eine Antwort.

Gilt für: