FilePathResult Constructor
Visual Studio 2010
Initializes a new instance of the FilePathResult class by using the specified file name and content type.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Parameters
- fileName
- Type: System.String
The name of the file to send to the response.
- contentType
- Type: System.String
The content type of the response.
| Exception | Condition |
|---|---|
| ArgumentException | The fileName parameter is Nothing or empty. |
Community Additions
ADD
Show: