ProcessStartInfo.StartDetached 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,指示是否應該以分離方式啟動該程序。
public:
property bool StartDetached { bool get(); void set(bool value); };
public bool StartDetached { get; set; }
member this.StartDetached : bool with get, set
Public Property StartDetached As Boolean
屬性值
true開始時與父方分離;否則,。 false 預設值為 false。
備註
啟動一個新的分離程序,標準輸入、輸出與錯誤會重新導向空裝置(NUL在 Windows、 /dev/null Unix 上),除非使用者明確設定為 RedirectStandardInput、 RedirectStandardOutput、 StandardOutputHandleRedirectStandardErrorStandardInputHandleStandardErrorHandle或 。
Windows,流程從DETACHED_PROCESS旗開始。
在 Unix 上,這個過程是從新會話的領導者開始。
此性質不能與 UseShellExecute 集合 true一起使用。