FileContentResult(Byte[], String) Constructor
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.
Initializes a new instance of the FileContentResult class by using the specified file contents and content type.
public FileContentResult (byte[] fileContents, string contentType);
new System.Web.Mvc.FileContentResult : byte[] * string -> System.Web.Mvc.FileContentResult
Public Sub New (fileContents As Byte(), contentType As String)
Parameters
- fileContents
- Byte[]
The byte array to send to the response.
- contentType
- String
The content type to use for the response.
Exceptions
The fileContents
parameter is null.