Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
ProcessStartInfo.CreateNewProcessGroup Property
Definition
- Namespace:
- System.Diagnostics
- Assemblies:
- netstandard.dll, System.Diagnostics.Process.dll
- Source:
- ProcessStartInfo.Unix.cs
- Source:
- ProcessStartInfo.Unix.cs
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 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
Feedback
Was this page helpful?
