WebContext.ApplicationPath 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得目前網頁應用程式的應用程式路徑。
public:
property System::String ^ ApplicationPath { System::String ^ get(); };
public string ApplicationPath { get; }
member this.ApplicationPath : string
Public ReadOnly Property ApplicationPath As String
屬性值
目前網頁應用程式的應用路徑。
範例
以下範例說明如何使用該 ApplicationPath 屬性。 此程式碼範例是本類別更大範例 WebContext 的一部分。
// WebContext - Application Path.
Console.WriteLine("ApplicationPath: {0}",
webContext.ApplicationPath.ToString());
' WebContext - Application Path.
Console.WriteLine("ApplicationPath: {0}", _
webContext.ApplicationPath.ToString())