FileContentResult Konstruktor
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
FileContentResult(Byte[], MediaTypeHeaderValue) |
Membuat instans baru FileContentResult dengan yang disediakan |
FileContentResult(Byte[], String) |
Membuat instans baru FileContentResult dengan yang disediakan |
FileContentResult(Byte[], MediaTypeHeaderValue)
- Sumber:
- FileContentResult.cs
- Sumber:
- FileContentResult.cs
- Sumber:
- FileContentResult.cs
Membuat instans baru FileContentResult dengan yang disediakan fileContents
dan yang disediakan 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[]
Byte yang mewakili konten file.
- contentType
- MediaTypeHeaderValue
Header Tipe Konten respons.
Berlaku untuk
FileContentResult(Byte[], String)
- Sumber:
- FileContentResult.cs
- Sumber:
- FileContentResult.cs
- Sumber:
- FileContentResult.cs
Membuat instans baru FileContentResult dengan yang disediakan fileContents
dan yang disediakan 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[]
Byte yang mewakili konten file.
- contentType
- String
Header Tipe Konten respons.