FileContentResult コンストラクター

定義

オーバーロード

FileContentResult(Byte[], MediaTypeHeaderValue)

指定された と指定された を使用してfileContents、新しいFileContentResultインスタンスをcontentType作成します。

FileContentResult(Byte[], String)

指定された と指定された を使用してfileContents、新しいFileContentResultインスタンスをcontentType作成します。

FileContentResult(Byte[], MediaTypeHeaderValue)

ソース:
FileContentResult.cs
ソース:
FileContentResult.cs

指定された と指定された を使用してfileContents、新しいFileContentResultインスタンスをcontentType作成します。

public:
 FileContentResult(cli::array <System::Byte> ^ fileContents, Microsoft::Net::Http::Headers::MediaTypeHeaderValue ^ contentType);
public FileContentResult (byte[] fileContents, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType);
new Microsoft.AspNetCore.Mvc.FileContentResult : byte[] * Microsoft.Net.Http.Headers.MediaTypeHeaderValue -> Microsoft.AspNetCore.Mvc.FileContentResult
Public Sub New (fileContents As Byte(), contentType As MediaTypeHeaderValue)

パラメーター

fileContents
Byte[]

ファイルの内容を表すバイト。

contentType
MediaTypeHeaderValue

応答の Content-Type ヘッダー。

適用対象

FileContentResult(Byte[], String)

ソース:
FileContentResult.cs
ソース:
FileContentResult.cs

指定された と指定された を使用してfileContents、新しいFileContentResultインスタンスをcontentType作成します。

public:
 FileContentResult(cli::array <System::Byte> ^ fileContents, System::String ^ contentType);
public FileContentResult (byte[] fileContents, string contentType);
new Microsoft.AspNetCore.Mvc.FileContentResult : byte[] * string -> Microsoft.AspNetCore.Mvc.FileContentResult
Public Sub New (fileContents As Byte(), contentType As String)

パラメーター

fileContents
Byte[]

ファイルの内容を表すバイト。

contentType
String

応答の Content-Type ヘッダー。

適用対象