ProducesResponseTypeAttribute Konstruktoren

Definition

Überlädt

ProducesResponseTypeAttribute(Int32)

Initialisiert eine Instanz von ProducesResponseTypeAttribute.

ProducesResponseTypeAttribute(Type, Int32)

Initialisiert eine Instanz von ProducesResponseTypeAttribute.

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

Initialisiert eine Instanz von ProducesResponseTypeAttribute.

ProducesResponseTypeAttribute(Int32)

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

Parameter

statusCode
Int32

Der HTTP-Antwortstatuscode.

Gilt für:

ProducesResponseTypeAttribute(Type, Int32)

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

Parameter

type
Type

Der Type des -Objekts, das in der Antwort geschrieben werden soll.

statusCode
Int32

Der HTTP-Antwortstatuscode.

Gilt für:

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

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

Parameter

type
Type

Der Type des -Objekts, das in der Antwort geschrieben werden soll.

statusCode
Int32

Der HTTP-Antwortstatuscode.

contentType
String

Der Inhaltstyp, der der Antwort zugeordnet ist.

additionalContentTypes
String[]

Zusätzliche Inhaltstypen, die von der Antwort unterstützt werden.

Gilt für: