In The Hand LtdIn The Hand
GetProcesses Method
NamespacesInTheHand.DiagnosticsProcessHelperGetProcesses()()()()
.NET Components for Mobility
Creates a new Process component for each process resource on the local computer.
Declaration Syntax
C#Visual Basic
public static Process[] GetProcesses()
Public Shared Function GetProcesses As Process()
Return Value
An array of type Process that represents all the process resources running on the local computer.
Remarks
Use this method to create an array of new Process components and associate them with all the process resources on the local computer. The process resources must already exist on the local computer, because GetProcesses()()()() does not create system resources but rather associates resources with application-generated Process components. Because the operating system itself is running background processes, this array is never empty.

The name of the process can be retrieved from Process.StartInfo.FileName or by using the GetProcessName(Process) extension method.

See Also

Assembly: InTheHand (Module: InTheHand) Version: 7.0.0.0