共用方式為


WebContext.ApplicationPath 屬性

定義

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

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())

適用於