次の方法で共有


ControllerBase.PhysicalFile メソッド

定義

オーバーロード

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

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

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

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

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

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

PhysicalFile(String, String, String, Boolean)

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

PhysicalFile(String, String, Boolean)

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

PhysicalFile(String, String, String)

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

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

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

PhysicalFile(String, String)

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

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

ソース:
ControllerBase.cs
ソース:
ControllerBase.cs
ソース:
ControllerBase.cs

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

ソース:
ControllerBase.cs
ソース:
ControllerBase.cs
ソース:
ControllerBase.cs

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

ソース:
ControllerBase.cs
ソース:
ControllerBase.cs
ソース:
ControllerBase.cs

physicalPath (Status200OK) で指定されたファイルと、指定した 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)

ソース:
ControllerBase.cs
ソース:
ControllerBase.cs
ソース:
ControllerBase.cs

指定した contentType を Content-Type として指定し、指定した fileDownloadNamephysicalPath (Status200OK) で指定したファイルを、推奨されるファイル名として返します。 これにより、範囲要求がサポートされます (範囲が満たされない場合は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, Boolean)

ソース:
ControllerBase.cs
ソース:
ControllerBase.cs
ソース:
ControllerBase.cs

指定した contentType を Content-Type として持つ physicalPath (Status200OK) で指定されたファイルを返します。 これにより、範囲要求がサポートされます (範囲が満たされない場合は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, String)

ソース:
ControllerBase.cs
ソース:
ControllerBase.cs
ソース:
ControllerBase.cs

指定した contentType を Content-Type として指定し、指定した fileDownloadNamephysicalPath (Status200OK) で指定したファイルを、推奨されるファイル名として返します。 これにより、範囲要求がサポートされます (範囲が満たされない場合は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, Nullable<DateTimeOffset>, EntityTagHeaderValue)

ソース:
ControllerBase.cs
ソース:
ControllerBase.cs
ソース:
ControllerBase.cs

physicalPath (Status200OK) で指定されたファイルと、指定した 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

属性

適用対象

PhysicalFile(String, String)

ソース:
ControllerBase.cs
ソース:
ControllerBase.cs
ソース:
ControllerBase.cs

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

属性

適用対象