共用方式為


IConfigMapPath.GetAppPathForPath(String, String) 方法

定義

取得與特定網站相關聯的虛擬目錄名稱。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 System::String ^ GetAppPathForPath(System::String ^ siteID, System::String ^ path);
public string GetAppPathForPath (string siteID, string path);
abstract member GetAppPathForPath : string * string -> string
Public Function GetAppPathForPath (siteID As String, path As String) As String

參數

siteID
String

網站的唯一識別項。

path
String

與網站相關聯的 URL。

傳回

String

siteID 必須是唯一的。 沒有兩個網站共用相同的識別碼。siteID 會區分具有相同名稱的網站。

備註

GetAppPathForPath在 .NET Framework 版本3.5 中引進。 如需詳細資訊,請參閱版本和相依性

適用於