FileResult Constructor

Initializes a new instance of the FileResult class.

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

'Declaration
Protected Sub New ( _
	contentType As String _
)
'Usage
Dim contentType As String 

Dim instance As New FileResult(contentType)

Parameters

contentType
Type: System.String

The type of the content.

ExceptionCondition
ArgumentException

The contentType parameter is Nothing or empty.

Show: