Process Members
.NET Framework 1.1
Public Constructors
Process Constructor | Initializes a new instance of the Process class. |
Public Properties
BasePriority | Gets the base priority of the associated process. |
Container (inherited from Component) | Gets the IContainer that contains the Component. |
EnableRaisingEvents | Gets or sets whether the Exited event should be raised when the process terminates. |
ExitCode | Gets the value that the associated process specified when it terminated. |
ExitTime | Gets the time that the associated process exited. |
Handle | Returns the associated process's native handle. |
HandleCount | Gets the number of handles opened by the process. |
HasExited | Gets a value indicating whether the associated process has been terminated. |
Id | Gets the unique identifier for the associated process. |
MachineName | Gets the name of the computer the associated process is running on. |
MainModule | Gets the main module for the associated process. |
MainWindowHandle | Gets the window handle of the main window of the associated process. |
MainWindowTitle | Gets the caption of the main window of the process. |
MaxWorkingSet | Gets or sets the maximum allowable working set size for the associated process. |
MinWorkingSet | Gets or sets the minimum allowable working set size for the associated process. |
Modules | Gets the modules that have been loaded by the associated process. |
NonpagedSystemMemorySize | Gets the nonpaged system memory size allocated to this process. |
PagedMemorySize | Gets the paged memory size. |
PagedSystemMemorySize | Gets the paged system memory size. |
PeakPagedMemorySize | Gets the peak paged memory size. |
PeakVirtualMemorySize | Gets the peak virtual memory size. |
PeakWorkingSet | Gets the peak working set size for the associated process. |
PriorityBoostEnabled | Gets or sets a value indicating whether the associated process priority should temporarily be boosted by the operating system when the main window has the focus. |
PriorityClass | Gets or sets the overall priority category for the associated process. |
PrivateMemorySize | Gets the private memory size. |
PrivilegedProcessorTime | Gets the privileged processor time for this process. |
ProcessName | Gets the name of the process. |
ProcessorAffinity | Gets or sets the processors on which the threads in this process can be scheduled to run. |
Responding | Gets a value indicating whether the user interface of the process is responding. |
Site (inherited from Component) | Gets or sets the ISite of the Component. |
StandardError | Gets a stream used to read the application's error output. |
StandardInput | Gets a stream used to write the application's input. |
StandardOutput | Gets a stream used to read the application's output. |
StartInfo | Gets or sets the properties to pass to the Start method of the Process. |
StartTime | Gets the time that the associated process was started. |
SynchronizingObject | Gets or sets the object used to marshal the event handler calls that are issued as a result of a process exit event. |
Threads | Gets the set of threads that are running in the associated process. |
TotalProcessorTime | Gets the total processor time for this process. |
UserProcessorTime | Gets the user processor time for this process. |
VirtualMemorySize | Gets the size of the process's virtual memory. |
WorkingSet | Gets the associated process's physical memory usage. |
Public Methods
Close | Frees all the resources that are associated with this component. |
CloseMainWindow | Closes a process that has a user interface by sending a close message to its main window. |
CreateObjRef (inherited from MarshalByRefObject) | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. |
Dispose (inherited from Component) | Overloaded. Releases the resources used by the Component. |
![]() EnterDebugMode | Puts a Process component in state to interact with operating system processes that run in a special mode by enabling the native property SeDebugPrivilege on the current thread. |
Equals (inherited from Object) | Overloaded. Determines whether two Object instances are equal. |
![]() GetCurrentProcess | Gets a new Process component and associates it with the currently active process. |
GetHashCode (inherited from Object) | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetLifetimeService (inherited from MarshalByRefObject) | Retrieves the current lifetime service object that controls the lifetime policy for this instance. |
![]() GetProcessById | Overloaded. Creates a new Process component, and associates it with the existing process resource that you specify. |
![]() GetProcesses | Overloaded. Creates an array of new Process components and associates them with existing process resources. |
![]() GetProcessesByName | Overloaded. Creates an array of new Process components and associates them with the existing process resources that all share the specified process name. |
GetType (inherited from Object) | Gets the Type of the current instance. |
InitializeLifetimeService (inherited from MarshalByRefObject) | Obtains a lifetime service object to control the lifetime policy for this instance. |
Kill | Immediately stops the associated process. |
![]() LeaveDebugMode | Takes a Process component out of the state that lets it interact with operating system processes that run in a special mode. |
Refresh | Discards any information about the associated process that has been cached inside the process component. |
Start | Overloaded. Starts a process resource and associates it with a Process component. |
ToString | Overridden. Formats the process's name as a string, combined with the parent component type, if applicable. |
WaitForExit | Overloaded. Sets the period of time to wait for the associated process to exit, and blocks the current thread of execution until the time has elapsed or the process has exited. |
WaitForInputIdle | Overloaded. Causes the Process component to wait for the associated process to enter an idle state. |
Public Events
Disposed (inherited from Component) | Adds an event handler to listen to the Disposed event on the component. |
Exited | Occurs when a process exits. |
Protected Properties
DesignMode (inherited from Component) | Gets a value that indicates whether the Component is currently in design mode. |
Events (inherited from Component) | Gets the list of event handlers that are attached to this Component. |
Protected Methods
Dispose | Overloaded. Overridden. See Component.Dispose. |
Finalize (inherited from Component) | Overridden. Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
In C# and C++, finalizers are expressed using destructor syntax. |
GetService (inherited from Component) | Returns an object that represents a service provided by the Component or by its Container. |
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object. |
OnExited | Raises the Exited event. |

