FileStreamResult(Stream, String) FileStreamResult(Stream, String) FileStreamResult(Stream, String) Constructor

Definition

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 Stream Stream

The stream to send to the response.

contentType
String String String

The content type to use for the response.

Exceptions

Applies to