Share via


PageBase.PhysicalFile Méthode

Définition

Surcharges

PhysicalFile(String, String, String)

Retourne le fichier spécifié par physicalPath (Status200OK) avec le spécifié contentType comme Content-Type et le spécifié fileDownloadName comme nom de fichier suggéré.

PhysicalFile(String, String)

Retourne le fichier spécifié par physicalPath (Status200OK) avec le spécifié contentType comme Content-Type.

PhysicalFile(String, String, String)

Source:
PageBase.cs
Source:
PageBase.cs

Retourne le fichier spécifié par physicalPath (Status200OK) avec le spécifié contentType comme Content-Type et le spécifié fileDownloadName comme nom de fichier suggéré.

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

Paramètres

physicalPath
String

Chemin physique du fichier à retourner.

contentType
String

Content-Type du fichier.

fileDownloadName
String

Nom de fichier suggéré.

Retours

créé PhysicalFileResult pour la réponse.

S’applique à

PhysicalFile(String, String)

Source:
PageBase.cs
Source:
PageBase.cs

Retourne le fichier spécifié par physicalPath (Status200OK) avec le spécifié contentType comme Content-Type.

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

Paramètres

physicalPath
String

Chemin physique du fichier à retourner.

contentType
String

Content-Type du fichier.

Retours

créé PhysicalFileResult pour la réponse.

S’applique à