Application.ExecutablePath 屬性

定義

取得啟動應用程式的可執行檔路徑,包括檔名。

public:
 static property System::String ^ ExecutablePath { System::String ^ get(); };
public static string ExecutablePath { get; }
static member ExecutablePath : string
Public Shared ReadOnly Property ExecutablePath As String

屬性值

啟動應用程式的可執行檔路徑和檔名。

此路徑會根據是否使用 ClickOnce 部署Windows Forms應用程式而有所不同。 ClickOnce 應用程式會儲存在 C:\Documents and Settings\username 目錄中的每個使用者應用程式快取中。 如需詳細資訊,請參閱 存取 ClickOnce 應用程式中的本機和遠端資料

適用於