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)

Syntax

public FileStreamResult(
    Stream fileStream,
    string contentType
)
public:
FileStreamResult(
    Stream^ fileStream,
    String^ contentType
)
new : 
        fileStream:Stream *
        contentType:string -> FileStreamResult
Public Sub New (
    fileStream As Stream,
    contentType As String
)

Parameters

  • contentType
    Type: System.String

    The content type to use for the response.

Exceptions

Exception Condition
ArgumentNullException

The fileStream parameter is null.

See Also

FileStreamResult Class
System.Web.Mvc Namespace

Return to top