ConfigurationLocation.Path 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得該物件所代表 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 屬性可能包含一個逗號分隔的路徑清單,這些路徑是該設定所適用的。