Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Initializes a new instance of the FileStreamResult class.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Sub New ( _
fileStream As Stream, _
contentType As String _
)
public FileStreamResult(
Stream fileStream,
string contentType
)
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.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The fileStream parameter is null reference (Nothing in Visual Basic). |