FileStreamResult Constructor (Stream, String)
Initializes a new instance of the FileStreamResult class.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Parameters
- fileStream
-
Type:
System.IO.Stream
The stream to send to the response.
- contentType
-
Type:
System.String
The content type to use for the response.
| Exception | Condition |
|---|---|
| ArgumentNullException | The fileStream parameter is null. |
Show: