Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
FilePathResult Constructor
Collapse the table of content
Expand the table of content

FilePathResult Constructor (String, String)


Initializes a new instance of the FilePathResult class by using the specified file name and content type.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public FilePathResult(
	string fileName,
	string contentType


Type: System.String

The name of the file to send to the response.

Type: System.String

The content type of the response.

Exception Condition

The fileName parameter is null or empty.

Return to top
© 2015 Microsoft