Environment.ProcessPath 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳啟動當前執行程序的可執行檔路徑。 當路徑不可用時返回 null 。
public:
static property System::String ^ ProcessPath { System::String ^ get(); };
public static string? ProcessPath { get; }
static member ProcessPath : string
Public Shared ReadOnly Property ProcessPath As String
屬性值
啟動當前執行程序的可執行檔路徑。
備註
若執行檔在首次存取此屬性前被重新命名或刪除,回傳值為未定義,且取決於作業系統。