PageBase.PhysicalFile Metoda

Definice

Přetížení

PhysicalFile(String, String, String)

Vrátí soubor zadaný (physicalPathStatus200OK) se zadaným contentType jako typ obsahu a zadaný fileDownloadName jako navrhovaný název souboru.

PhysicalFile(String, String)

Vrátí soubor určený (physicalPathStatus200OK) se zadaným contentType typem obsahu.

PhysicalFile(String, String, String)

Vrátí soubor zadaný (physicalPathStatus200OK) se zadaným contentType jako typ obsahu a zadaný fileDownloadName jako navrhovaný název souboru.

public:
 virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType, System::String ^ fileDownloadName);
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string fileDownloadName);
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string? fileDownloadName);
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

Parametry

physicalPath
String

Fyzická cesta k souboru, který se má vrátit.

contentType
String

Typ obsahu souboru.

fileDownloadName
String

Navrhovaný název souboru.

Návraty

PhysicalFileResult

PhysicalFileResult Vytvořeno pro odpověď.

Platí pro

PhysicalFile(String, String)

Vrátí soubor určený (physicalPathStatus200OK) se zadaným contentType typem obsahu.

public:
 virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType);
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType);
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

Parametry

physicalPath
String

Fyzická cesta k souboru, který se má vrátit.

contentType
String

Typ obsahu souboru.

Návraty

PhysicalFileResult

PhysicalFileResult Vytvořeno pro odpověď.

Platí pro