ProcessStartInfo.StartDetached Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value indicating whether the process should be started in a detached manner.
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
Property Value
true to start the process detached from the parent; otherwise, false. The default is false.
Remarks
Starts a new detached process with standard input, output, and error redirected to the null device (NUL on Windows, /dev/null on Unix) unless explicitly configured by the user with RedirectStandardInput, RedirectStandardOutput, RedirectStandardError, StandardInputHandle, StandardOutputHandle, or StandardErrorHandle.
On Windows, the process is started with the DETACHED_PROCESS flag.
On Unix, the process is started as a leader of a new session.
This property cannot be used together with UseShellExecute set to true.