Condividi tramite


PageModel.PhysicalFile Metodo

Definizione

Overload

PhysicalFile(String, String)

Restituisce il file specificato da physicalPath (Status200OK) con l'oggetto specificato contentType come Content-Type.

PhysicalFile(String, String, String)

Restituisce il file specificato da physicalPath (Status200OK) con l'oggetto specificato come Content-Type e l'oggetto specificato contentTypefileDownloadName come nome file suggerito.

PhysicalFile(String, String)

Origine:
PageModel.cs
Origine:
PageModel.cs

Restituisce il file specificato da physicalPath (Status200OK) con l'oggetto specificato contentType come 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

Parametri

physicalPath
String

Percorso fisico del file da restituire.

contentType
String

Tipo di contenuto del file.

Restituisce

Oggetto creato PhysicalFileResult per la risposta.

Si applica a

PhysicalFile(String, String, String)

Origine:
PageModel.cs
Origine:
PageModel.cs

Restituisce il file specificato da physicalPath (Status200OK) con l'oggetto specificato come Content-Type e l'oggetto specificato contentTypefileDownloadName come nome file suggerito.

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

Parametri

physicalPath
String

Percorso fisico del file da restituire.

contentType
String

Tipo di contenuto del file.

fileDownloadName
String

Nome file suggerito.

Restituisce

Oggetto creato PhysicalFileResult per la risposta.

Si applica a