PhysicalFileResult コンストラクター

定義

オーバーロード

PhysicalFileResult(String, MediaTypeHeaderValue)

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

PhysicalFileResult(String, String)

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

PhysicalFileResult(String, MediaTypeHeaderValue)

ソース:
PhysicalFileResult.cs
ソース:
PhysicalFileResult.cs

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

public:
 PhysicalFileResult(System::String ^ fileName, Microsoft::Net::Http::Headers::MediaTypeHeaderValue ^ contentType);
public PhysicalFileResult (string fileName, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType);
new Microsoft.AspNetCore.Mvc.PhysicalFileResult : string * Microsoft.Net.Http.Headers.MediaTypeHeaderValue -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Sub New (fileName As String, contentType As MediaTypeHeaderValue)

パラメーター

fileName
String

ファイルへのパス。 パスは絶対パスである必要があります。

contentType
MediaTypeHeaderValue

応答の Content-Type ヘッダー。

適用対象

PhysicalFileResult(String, String)

ソース:
PhysicalFileResult.cs
ソース:
PhysicalFileResult.cs

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

public:
 PhysicalFileResult(System::String ^ fileName, System::String ^ contentType);
public PhysicalFileResult (string fileName, string contentType);
new Microsoft.AspNetCore.Mvc.PhysicalFileResult : string * string -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Sub New (fileName As String, contentType As String)

パラメーター

fileName
String

ファイルへのパス。 パスは絶対パスである必要があります。

contentType
String

応答の Content-Type ヘッダー。

適用対象