FileContentResult Constructor

Initializes a new instance of the FileContentResult class by using the specified file contents and content type.

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

'Declaration
Public Sub New ( _
	fileContents As Byte(), _
	contentType As String _
)
'Usage
Dim fileContents As Byte()
Dim contentType As String 

Dim instance As New FileContentResult(fileContents, _
	contentType)

Parameters

fileContents
Type: System.Byte()

The byte array to send to the response.

contentType
Type: System.String

The content type to use for the response.

ExceptionCondition
ArgumentNullException

The fileContents parameter is Nothing.

Show: