ProcessStartInfo.StartSuspended 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,指示程序是否應該以暫停狀態啟動。
public:
property bool StartSuspended { bool get(); void set(bool value); };
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
[System.Runtime.Versioning.SupportedOSPlatform("macos")]
public bool StartSuspended { get; set; }
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
[<System.Runtime.Versioning.SupportedOSPlatform("macos")>]
member this.StartSuspended : bool with get, set
Public Property StartSuspended As Boolean
屬性值
true若程序應暫停啟動;否則,。 false 預設值為 false。
- 屬性
備註
當此屬性為 true時,程序即以主執行緒暫停狀態建立。 程序直到 Resume() 被呼叫到程序的句柄(例如 由 Start(ProcessStartInfo)返回的句柄)後才開始執行。
Windows時,從CREATE_SUSPENDED旗開始。
在 macOS 上,這個程序是以旗 POSIX_SPAWN_START_SUSPENDED 標啟動的。
此性質不能與 UseShellExecute 集合 true一起使用。