FileContentResult Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
FileContentResult(Byte[], MediaTypeHeaderValue) |
Creates a new FileContentResult instance with
the provided |
FileContentResult(Byte[], String) |
Creates a new FileContentResult instance with
the provided |
FileContentResult(Byte[], MediaTypeHeaderValue)
- Source:
- FileContentResult.cs
- Source:
- FileContentResult.cs
- Source:
- FileContentResult.cs
Creates a new FileContentResult instance with
the provided fileContents
and the
provided 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)
Parameters
- fileContents
- Byte[]
The bytes that represent the file contents.
- contentType
- MediaTypeHeaderValue
The Content-Type header of the response.
Applies to
FileContentResult(Byte[], String)
- Source:
- FileContentResult.cs
- Source:
- FileContentResult.cs
- Source:
- FileContentResult.cs
Creates a new FileContentResult instance with
the provided fileContents
and the
provided 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)
Parameters
- fileContents
- Byte[]
The bytes that represent the file contents.
- contentType
- String
The Content-Type header of the response.