ProducesResponseTypeAttribute<T> Konstruktoren

Definition

Überlädt

ProducesResponseTypeAttribute<T>(Int32)

Initialisiert eine Instanz von ProducesResponseTypeAttribute.

ProducesResponseTypeAttribute<T>(Int32, String, String[])

Initialisiert eine Instanz von ProducesResponseTypeAttribute.

ProducesResponseTypeAttribute<T>(Int32)

Initialisiert eine Instanz von ProducesResponseTypeAttribute.

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

Parameter

statusCode
Int32

Der HTTP-Antwortstatuscode.

Gilt für:

ProducesResponseTypeAttribute<T>(Int32, String, String[])

Initialisiert eine Instanz von ProducesResponseTypeAttribute.

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

Parameter

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: