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 可能包含套用組態設定的路徑逗號分隔清單。

適用於