FileStreamResult Constructor
Initializes a new instance of the FileStreamResult class.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
'Declaration Public Sub New ( _ fileStream As Stream, _ contentType As String _ ) 'Usage Dim fileStream As Stream Dim contentType As String Dim instance As New FileStreamResult(fileStream, _ contentType)
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 Nothing. |
Show: