The Process Class

When an application is executed, it creates a process. Each process consumes memory and other system resources, and is uniquely identified by a process identifier (PID). The System.Diagnostics namespace includes a Process class. The methods of the Process class can be used to start and stop running processes, and its properties can be used to obtain information about running processes.

Starting and Stopping Processes

The Start method of the Process class can be used to start an instance of the target process, using startup information specified in the StartInfo property to allow runtime configuration of the application's environment. The Process class also includes two methods that can be used to terminate a running process: ...

Get Developing and Implementing Windows®-Based Applications with Visual C#™ .NET and Visual Studio® .NET Exam Cram™ 2 (Exam 70-316) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.