ProducesResponseTypeAttribute Konstruktoren
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Ü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
- 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
- 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:
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für