Edit

Share via


ProcessStartInfo.CreateNewProcessGroup Property

Definition

Gets or sets a value indicating whether to start the process in a new process group.

public:
 property bool CreateNewProcessGroup { bool get(); void set(bool value); };
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public bool CreateNewProcessGroup { get; set; }
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
member this.CreateNewProcessGroup : bool with get, set
Public Property CreateNewProcessGroup As Boolean

Property Value

true if the process starts in a new process group; otherwise, false. The default is false.

Attributes

Remarks

When a process is created in a new process group, it becomes the root of a new process group.

An implicit call to SetConsoleCtrlHandler(NULL,TRUE) is made on behalf of the new process, which means that the new process has Ctrl+C disabled.

This property is useful for preventing console control events sent to the child process from affecting the parent process.

Applies to