FileContentResult(Byte[], String) コンストラクター

定義

指定したファイルの内容とコンテンツ タイプを FileContentResult 使用して、 クラスの新しいインスタンスを初期化します。

public FileContentResult (byte[] fileContents, string contentType);
new System.Web.Mvc.FileContentResult : byte[] * string -> System.Web.Mvc.FileContentResult
Public Sub New (fileContents As Byte(), contentType As String)

パラメーター

fileContents
Byte[]

応答に送信するバイト配列。

contentType
String

応答に使用するコンテンツ タイプ。

例外

fileContents パラメーターが null です。

適用対象