Gemstone Diagnostics Library
Show/Hide TOC

# ChildProcessManagerAddProcess Method

Associates the specified process as a child of this ChildProcessManager instance.

## Definition

Namespace: Gemstone.Diagnostics
Assembly: Gemstone.Diagnostics (in Gemstone.Diagnostics.dll) Version: 1.0.158 -- Release Build+99afb604a3213fce45692d9a55b9e5a5d4bade5b
C#
View Source Request Example

    public void AddProcess(
    	Process process
    )

VB
View Source Request Example

    Public Sub AddProcess (
    	process As Process
    )

C++
View Source Request Example

    public:
    void AddProcess(
    	Process^ process
    )

JavaScript
View Source Request Example

    function AddProcess(process);

#### Parameters

process Process
  The Process to associate.

## Remarks

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.

## See Also

#### Reference

ChildProcessManager Class
Gemstone.Diagnostics Namespace