HttpRequestBase.MapPath Método
Definição
Quando substituída em uma classe derivada, mapeia o caminho virtual na URL solicitada para um caminho físico no servidor.When overridden in a derived class, maps the virtual path in the requested URL to a physical path on the server.
Sobrecargas
| MapPath(String) |
Quando substituída em uma classe derivada, mapeia o caminho virtual especificado para um caminho físico no servidor.When overridden in a derived class, maps the specified virtual path to a physical path on the server. |
| MapPath(String, String, Boolean) |
Quando substituída em uma classe derivada, mapeia o caminho virtual especificado para um caminho físico no servidor.When overridden in a derived class, maps the specified virtual path to a physical path on the server. |
MapPath(String)
Quando substituída em uma classe derivada, mapeia o caminho virtual especificado para um caminho físico no servidor.When overridden in a derived class, maps the specified virtual path to a physical path on the server.
public:
virtual System::String ^ MapPath(System::String ^ virtualPath);
public virtual string MapPath (string virtualPath);
abstract member MapPath : string -> string
override this.MapPath : string -> string
Public Overridable Function MapPath (virtualPath As String) As String
Parâmetros
- virtualPath
- String
O caminho virtual (absoluto ou relativo) a mapear para um caminho físico.The virtual path (absolute or relative) to map to a physical path.
Retornos
O caminho físico no servidor especificado por virtualPath.The physical path on the server that is specified by virtualPath.
Exceções
Sempre.Always.
Aplica-se a
MapPath(String, String, Boolean)
Quando substituída em uma classe derivada, mapeia o caminho virtual especificado para um caminho físico no servidor.When overridden in a derived class, maps the specified virtual path to a physical path on the server.
public:
virtual System::String ^ MapPath(System::String ^ virtualPath, System::String ^ baseVirtualDir, bool allowCrossAppMapping);
public virtual string MapPath (string virtualPath, string baseVirtualDir, bool allowCrossAppMapping);
abstract member MapPath : string * string * bool -> string
override this.MapPath : string * string * bool -> string
Public Overridable Function MapPath (virtualPath As String, baseVirtualDir As String, allowCrossAppMapping As Boolean) As String
Parâmetros
- virtualPath
- String
O caminho virtual (absoluto ou relativo) a mapear para um caminho físico.The virtual path (absolute or relative) to map to a physical path.
- baseVirtualDir
- String
O caminho do diretório base virtual usado para resolução relativa.The virtual base directory path that is used for relative resolution.
- allowCrossAppMapping
- Boolean
true para indicar que virtualPath pode pertencer a outro aplicativo; caso contrário, false.true to indicate that virtualPath can belong to another application; otherwise, false.
Retornos
O caminho físico no servidor.The physical path on the server.
Exceções
Sempre.Always.