FileContentResult 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
FileContentResult(Byte[], MediaTypeHeaderValue) |
Erstellt eine neue FileContentResult instance mit dem bereitgestellten |
FileContentResult(Byte[], String) |
Erstellt eine neue FileContentResult instance mit dem bereitgestellten |
FileContentResult(Byte[], MediaTypeHeaderValue)
- Quelle:
- FileContentResult.cs
- Quelle:
- FileContentResult.cs
- Quelle:
- FileContentResult.cs
Erstellt eine neue FileContentResult instance mit dem bereitgestellten fileContents
und dem bereitgestellten contentType
.
public:
FileContentResult(cli::array <System::Byte> ^ fileContents, Microsoft::Net::Http::Headers::MediaTypeHeaderValue ^ contentType);
public FileContentResult (byte[] fileContents, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType);
new Microsoft.AspNetCore.Mvc.FileContentResult : byte[] * Microsoft.Net.Http.Headers.MediaTypeHeaderValue -> Microsoft.AspNetCore.Mvc.FileContentResult
Public Sub New (fileContents As Byte(), contentType As MediaTypeHeaderValue)
Parameter
- fileContents
- Byte[]
Die Bytes, die den Dateiinhalt darstellen.
- contentType
- MediaTypeHeaderValue
Der Content-Type-Header der Antwort.
Gilt für:
FileContentResult(Byte[], String)
- Quelle:
- FileContentResult.cs
- Quelle:
- FileContentResult.cs
- Quelle:
- FileContentResult.cs
Erstellt eine neue FileContentResult instance mit dem bereitgestellten fileContents
und dem bereitgestellten contentType
.
public:
FileContentResult(cli::array <System::Byte> ^ fileContents, System::String ^ contentType);
public FileContentResult (byte[] fileContents, string contentType);
new Microsoft.AspNetCore.Mvc.FileContentResult : byte[] * string -> Microsoft.AspNetCore.Mvc.FileContentResult
Public Sub New (fileContents As Byte(), contentType As String)
Parameter
- fileContents
- Byte[]
Die Bytes, die den Dateiinhalt darstellen.
- contentType
- String
Der Content-Type-Header der 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