FileResult Constructor
Initializes a new instance of the FileResult class.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Protected Sub New ( _
contentType As String _
)
protected FileResult(
string contentType
)
protected:
FileResult(
String^ contentType
)
Parameters
- contentType
Type: System.String
The type of the content.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The contentType parameter is null reference (Nothing in Visual Basic) or empty. |