Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

FileStreamResult Constructor (Stream, String)

 

Initializes a new instance of the FileStreamResult class.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public FileStreamResult(
	Stream fileStream,
	string 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 null.

Return to top
Show:
© 2015 Microsoft