public void AddProcess(
Process process
)
Public Sub AddProcess (
process As Process
)
public:
void AddProcess(
Process^ process
)
function AddProcess(process);
The process will be managed as an associated process of this ChildProcessManager instance. When this ChildProcessManager instance is disposed or garbage collected, the children processes will be terminated.
Creating an instance of this class with lifetime scope of the executing application will cause any child processes to be terminated when the parent process shuts down, on Windows environments this will happen even when the parent process termination is abnormal.