共用方式為


WebContext.Path 屬性

定義

取得目前網頁應用程式的虛擬路徑。

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

屬性值

目前網頁應用程式的虛擬路徑。

範例

以下範例說明如何使用該 Path 屬性。 此程式碼範例是本類別更大範例 WebContext 的一部分。

// WebContext - Path.
Console.WriteLine("Path: {0}", webContext.Path.ToString());
' WebContext - Path.
Console.WriteLine("Path: {0}", webContext.Path.ToString())

適用於