共用方式為


ConfigurationLocation.Path 屬性

定義

取得該物件所代表 ConfigurationLocation 的設定資源的相對路徑。

public:
 property System::String ^ Path { System::String ^ get(); };
public string Path { get; }
member this.Path : string
Public ReadOnly Property Path As String

屬性值

指向配置 ConfigurationLocation設定所代表的資源的相對路徑。

範例

以下程式碼範例說明如何存取該 Path 屬性並顯示返回給主控台的值。

Console.WriteLine("Location Path: {0}", myLocation.Path);
Console.WriteLine("Location Path: {0}", myLocation.Path)

備註

該資產回傳 Path 的路徑是相對於你網站根源的。

備註

Path 屬性可能包含一個逗號分隔的路徑清單,這些路徑是該設定所適用的。

適用於