GetProcessById Method

Gets a Process from the process database by process ID.

public Process GetProcessById(int id);

Classes: Database


Parameters

value id

ID of the process to retrieve

Returns

Process object.


Example

The following example demonstrates retrieving a specific process from the database by process Id.

var process = Database.GetProcessById(1);

Remarks

Processes returned from this method are held in memory only. Any changes to the Process returned will not be saved until they are saved using a Database method.