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

The stream to send to the response.

contentType
String

The content type to use for the response.

Exceptions

The fileStream parameter is null.

Applies to