Application.ExecutablePath 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得啟動應用程式的可執行檔路徑,包括執行檔名稱。
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
屬性值
啟動應用程式的可執行檔路徑與執行檔名稱。
此路徑會因 Windows Forms 應用程式是否使用 ClickOnce 部署而有所不同。 ClickOnce 應用程式會儲存在 C:\Documents and Settings\username 目錄中的每位使用者應用程式快取中。 欲了解更多資訊,請參閱 ClickOnce 應用程式中的本地與遠端資料存取。