Compartilhar via


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

Exceptions

Exception Condition
ArgumentException

The contentType parameter is null reference (Nothing in Visual Basic) or empty.

See Also

Reference

FileResult Class

System.Web.Mvc Namespace