FileStreamResult(Stream, 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 FileStreamResult class.
public FileStreamResult (System.IO.Stream fileStream, string contentType);
new System.Web.Mvc.FileStreamResult : System.IO.Stream * string -> System.Web.Mvc.FileStreamResult
Public Sub New (fileStream As Stream, contentType As String)
Parameters
- fileStream
- Stream
The stream to send to the response.
- contentType
- String
The content type to use for the response.
Exceptions
The fileStream
parameter is null.