ProducesAttribute 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
ProducesAttribute(Type) |
Initialisiert eine Instanz von ProducesAttribute. |
ProducesAttribute(String, String[]) |
Initialisiert eine instance von ProducesAttribute mit zulässigen Inhaltstypen. |
ProducesAttribute(Type)
- Quelle:
- ProducesAttribute.cs
- Quelle:
- ProducesAttribute.cs
- Quelle:
- ProducesAttribute.cs
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
Gilt für:
ProducesAttribute(String, String[])
- Quelle:
- ProducesAttribute.cs
- Quelle:
- ProducesAttribute.cs
- Quelle:
- ProducesAttribute.cs
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:
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