HttpServerUtilityWrapper.MapPath(String) 方法

定義

傳回對應於 Web 伺服器上所指定虛擬路徑的實體檔案路徑。

public:
 override System::String ^ MapPath(System::String ^ path);
public override string MapPath (string path);
override this.MapPath : string -> string
Public Overrides Function MapPath (path As String) As String

參數

path
String

要取得其實體路徑的虛擬路徑。

傳回

String

對應至 path 的實體檔案路徑。

例外狀況

目前的 HttpContext 物件是 null

適用於