WebContext.Path 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得目前網頁應用程式的虛擬路徑。
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())