ControllerBase.PhysicalFile メソッド

定義

オーバーロード

PhysicalFile(String, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

() でphysicalPath指定されたファイル、Content-Type として指定された contentType を返し、指定した fileDownloadName を推奨されるファイル名として返Status200OKします。 これにより、範囲要求 (Status206PartialContent または Status416RangeNotSatisfiable 範囲が満たされない場合) がサポートされます。

PhysicalFile(String, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

() でphysicalPath指定されたファイル、Content-Type として指定された contentType を返し、指定した fileDownloadName を推奨されるファイル名として返Status200OKします。 これにより、範囲要求 (Status206PartialContent または Status416RangeNotSatisfiable 範囲が満たされない場合) がサポートされます。

PhysicalFile(String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

(Status200OK) でphysicalPath指定されたファイルと、指定された contentType を Content-Type として返します。 これにより、範囲要求 (Status206PartialContent または Status416RangeNotSatisfiable 範囲が満たされない場合) がサポートされます。

PhysicalFile(String, String, String, Boolean)

指定した を Content-Type として指定し、指定した contentType を推奨されるファイル名として使用して、(Status200OK) でphysicalPath指定されたfileDownloadNameファイルを返します。 これにより、範囲要求 (Status206PartialContent または Status416RangeNotSatisfiable 範囲が満たされない場合) がサポートされます。

PhysicalFile(String, String)

指定した を Content-Type として指定した (Status200OK) でphysicalPath指定したcontentTypeファイルを返します。 これにより、範囲要求 (Status206PartialContent または Status416RangeNotSatisfiable 範囲が満たされない場合) がサポートされます。

PhysicalFile(String, String, String)

指定した を Content-Type として指定し、指定した contentType を推奨されるファイル名として使用して、(Status200OK) でphysicalPath指定されたfileDownloadNameファイルを返します。 これにより、範囲要求 (Status206PartialContent または Status416RangeNotSatisfiable 範囲が満たされない場合) がサポートされます。

PhysicalFile(String, String, Boolean)

指定した を Content-Type として指定した (Status200OK) でphysicalPath指定したcontentTypeファイルを返します。 これにより、範囲要求 (Status206PartialContent または Status416RangeNotSatisfiable 範囲が満たされない場合) がサポートされます。

PhysicalFile(String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

(Status200OK) でphysicalPath指定されたファイルと、指定された contentType を Content-Type として返します。 これにより、範囲要求 (Status206PartialContent または Status416RangeNotSatisfiable 範囲が満たされない場合) がサポートされます。

PhysicalFile(String, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

() でphysicalPath指定されたファイル、Content-Type として指定された contentType を返し、指定した fileDownloadName を推奨されるファイル名として返Status200OKします。 これにより、範囲要求 (Status206PartialContent または Status416RangeNotSatisfiable 範囲が満たされない場合) がサポートされます。

public:
 virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType, System::String ^ fileDownloadName, Nullable<DateTimeOffset> lastModified, Microsoft::Net::Http::Headers::EntityTagHeaderValue ^ entityTag, bool enableRangeProcessing);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string fileDownloadName, DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string? fileDownloadName, DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PhysicalFile : string * string * string * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue * bool -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
override this.PhysicalFile : string * string * string * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue * bool -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Overridable Function PhysicalFile (physicalPath As String, contentType As String, fileDownloadName As String, lastModified As Nullable(Of DateTimeOffset), entityTag As EntityTagHeaderValue, enableRangeProcessing As Boolean) As PhysicalFileResult

パラメーター

physicalPath
String

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

contentType
String

ファイルの Content-Type。

fileDownloadName
String

推奨されるファイル名。

lastModified
Nullable<DateTimeOffset>

DateTimeOffsetファイルが最後に変更された日時の 。

entityTag
EntityTagHeaderValue

EntityTagHeaderValueファイルに関連付けられている 。

enableRangeProcessing
Boolean

範囲要求の処理を有効にするには、 を に true 設定します。

戻り値

応答用に作成された PhysicalFileResult

属性

適用対象

PhysicalFile(String, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

() でphysicalPath指定されたファイル、Content-Type として指定された contentType を返し、指定した fileDownloadName を推奨されるファイル名として返Status200OKします。 これにより、範囲要求 (Status206PartialContent または Status416RangeNotSatisfiable 範囲が満たされない場合) がサポートされます。

public:
 virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType, System::String ^ fileDownloadName, Nullable<DateTimeOffset> lastModified, Microsoft::Net::Http::Headers::EntityTagHeaderValue ^ entityTag);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string fileDownloadName, DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string? fileDownloadName, DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PhysicalFile : string * string * string * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
override this.PhysicalFile : string * string * string * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Overridable Function PhysicalFile (physicalPath As String, contentType As String, fileDownloadName As String, lastModified As Nullable(Of DateTimeOffset), entityTag As EntityTagHeaderValue) As PhysicalFileResult

パラメーター

physicalPath
String

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

contentType
String

ファイルの Content-Type。

fileDownloadName
String

推奨されるファイル名。

lastModified
Nullable<DateTimeOffset>

DateTimeOffsetファイルが最後に変更された日時の 。

entityTag
EntityTagHeaderValue

EntityTagHeaderValueファイルに関連付けられている 。

戻り値

応答用に作成された PhysicalFileResult

属性

適用対象

PhysicalFile(String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

(Status200OK) でphysicalPath指定されたファイルと、指定された contentType を Content-Type として返します。 これにより、範囲要求 (Status206PartialContent または Status416RangeNotSatisfiable 範囲が満たされない場合) がサポートされます。

public:
 virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType, Nullable<DateTimeOffset> lastModified, Microsoft::Net::Http::Headers::EntityTagHeaderValue ^ entityTag, bool enableRangeProcessing);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PhysicalFile : string * string * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue * bool -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
override this.PhysicalFile : string * string * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue * bool -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Overridable Function PhysicalFile (physicalPath As String, contentType As String, lastModified As Nullable(Of DateTimeOffset), entityTag As EntityTagHeaderValue, enableRangeProcessing As Boolean) As PhysicalFileResult

パラメーター

physicalPath
String

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

contentType
String

ファイルの Content-Type。

lastModified
Nullable<DateTimeOffset>

DateTimeOffsetファイルが最後に変更された日時の 。

entityTag
EntityTagHeaderValue

EntityTagHeaderValueファイルに関連付けられている 。

enableRangeProcessing
Boolean

範囲要求の処理を有効にするには、 を に true 設定します。

戻り値

応答用に作成された PhysicalFileResult

属性

適用対象

PhysicalFile(String, String, String, Boolean)

指定した を Content-Type として指定し、指定した contentType を推奨されるファイル名として使用して、(Status200OK) でphysicalPath指定されたfileDownloadNameファイルを返します。 これにより、範囲要求 (Status206PartialContent または Status416RangeNotSatisfiable 範囲が満たされない場合) がサポートされます。

public:
 virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType, System::String ^ fileDownloadName, bool enableRangeProcessing);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string fileDownloadName, bool enableRangeProcessing);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string? fileDownloadName, bool enableRangeProcessing);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PhysicalFile : string * string * string * bool -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
override this.PhysicalFile : string * string * string * bool -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Overridable Function PhysicalFile (physicalPath As String, contentType As String, fileDownloadName As String, enableRangeProcessing As Boolean) As PhysicalFileResult

パラメーター

physicalPath
String

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

contentType
String

ファイルの Content-Type。

fileDownloadName
String

推奨されるファイル名。

enableRangeProcessing
Boolean

範囲要求の処理を有効にするには、 を に true 設定します。

戻り値

応答用に作成された PhysicalFileResult

属性

適用対象

PhysicalFile(String, String)

指定した を Content-Type として指定した (Status200OK) でphysicalPath指定したcontentTypeファイルを返します。 これにより、範囲要求 (Status206PartialContent または Status416RangeNotSatisfiable 範囲が満たされない場合) がサポートされます。

public:
 virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PhysicalFile : string * string -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
override this.PhysicalFile : string * string -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Overridable Function PhysicalFile (physicalPath As String, contentType As String) As PhysicalFileResult

パラメーター

physicalPath
String

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

contentType
String

ファイルの Content-Type。

戻り値

応答用に作成された PhysicalFileResult

属性

適用対象

PhysicalFile(String, String, String)

指定した を Content-Type として指定し、指定した contentType を推奨されるファイル名として使用して、(Status200OK) でphysicalPath指定されたfileDownloadNameファイルを返します。 これにより、範囲要求 (Status206PartialContent または Status416RangeNotSatisfiable 範囲が満たされない場合) がサポートされます。

public:
 virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType, System::String ^ fileDownloadName);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string fileDownloadName);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string? fileDownloadName);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PhysicalFile : string * string * string -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
override this.PhysicalFile : string * string * string -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Overridable Function PhysicalFile (physicalPath As String, contentType As String, fileDownloadName As String) As PhysicalFileResult

パラメーター

physicalPath
String

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

contentType
String

ファイルの Content-Type。

fileDownloadName
String

推奨されるファイル名。

戻り値

応答用に作成された PhysicalFileResult

属性

適用対象

PhysicalFile(String, String, Boolean)

指定した を Content-Type として指定した (Status200OK) でphysicalPath指定したcontentTypeファイルを返します。 これにより、範囲要求 (Status206PartialContent または Status416RangeNotSatisfiable 範囲が満たされない場合) がサポートされます。

public:
 virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType, bool enableRangeProcessing);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, bool enableRangeProcessing);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PhysicalFile : string * string * bool -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
override this.PhysicalFile : string * string * bool -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Overridable Function PhysicalFile (physicalPath As String, contentType As String, enableRangeProcessing As Boolean) As PhysicalFileResult

パラメーター

physicalPath
String

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

contentType
String

ファイルの Content-Type。

enableRangeProcessing
Boolean

範囲要求の処理を有効にするには、 を に true 設定します。

戻り値

応答用に作成された PhysicalFileResult

属性

適用対象

PhysicalFile(String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

(Status200OK) でphysicalPath指定されたファイルと、指定された contentType を Content-Type として返します。 これにより、範囲要求 (Status206PartialContent または Status416RangeNotSatisfiable 範囲が満たされない場合) がサポートされます。

public:
 virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType, Nullable<DateTimeOffset> lastModified, Microsoft::Net::Http::Headers::EntityTagHeaderValue ^ entityTag);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PhysicalFile : string * string * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
override this.PhysicalFile : string * string * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Overridable Function PhysicalFile (physicalPath As String, contentType As String, lastModified As Nullable(Of DateTimeOffset), entityTag As EntityTagHeaderValue) As PhysicalFileResult

パラメーター

physicalPath
String

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

contentType
String

ファイルの Content-Type。

lastModified
Nullable<DateTimeOffset>

DateTimeOffsetファイルが最後に変更された日時の 。

entityTag
EntityTagHeaderValue

EntityTagHeaderValueファイルに関連付けられている 。

戻り値

応答用に作成された PhysicalFileResult

属性

適用対象