FileContentResult Constructor
Visual Studio 2010
Initializes a new instance of the FileContentResult class by using the specified file contents and content type.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Parameters
- fileContents
- Type: array<System::Byte>
The byte array to send to the response.
- contentType
- Type: System::String
The content type to use for the response.
| Exception | Condition |
|---|---|
| ArgumentNullException | The fileContents parameter is nullptr. |
Community Additions
ADD
Show: