Process Members
.NET Framework 3.5
Provides access to local and remote processes and enables you to start and stop local system processes.
The Process type exposes the following members.
| Name | Description | |
|---|---|---|
|
BeginErrorReadLine | Begins asynchronous read operations on the redirected StandardError stream of the application. |
|
BeginOutputReadLine | Begins asynchronous read operations on the redirected StandardOutput stream of the application. |
|
CancelErrorRead | Cancels the asynchronous read operation on the redirected StandardError stream of an application. |
|
CancelOutputRead | Cancels the asynchronous read operation on the redirected StandardOutput stream of an application. |
|
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 | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
|
Dispose | Overloaded. |
|
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 | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.) |
|
GetCurrentProcess | Gets a new Process component and associates it with the currently active process. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
|
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. |
|
GetService | Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.) |
|
GetType | Gets the type of the current instance. (Inherited from Object.) |
|
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
|
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. |
|
MemberwiseClone | Overloaded. |
|
OnExited | Raises the Exited event. |
|
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 |
Formats the process's name as a string, combined with the parent component type, if applicable. (Overrides Component.ToString().) In .NET Compact Framework 3.5, this member is inherited from Object.ToString(). |
|
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. |
| Name | Description | |
|---|---|---|
|
BasePriority | Gets the base priority of the associated process. |
|
CanRaiseEvents | Gets a value indicating whether the component can raise an event. (Inherited from Component.) |
|
Container | Gets the IContainer that contains the Component. (Inherited from Component.) |
|
DesignMode | Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.) |
|
EnableRaisingEvents | Gets or sets whether the Exited event should be raised when the process terminates. |
|
Events | Gets the list of event handlers that are attached to this Component. (Inherited from Component.) |
|
ExitCode | Gets the value that the associated process specified when it terminated. |
|
ExitTime | Gets the time that the associated process exited. |
|
Handle | Gets the native handle of the associated process. |
|
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 | Obsolete. Gets the nonpaged system memory size allocated to this process. |
|
NonpagedSystemMemorySize64 | Gets the amount of nonpaged system memory allocated for the associated process. |
|
PagedMemorySize | Obsolete. Gets the paged memory size. |
|
PagedMemorySize64 | Gets the amount of paged memory allocated for the associated process. |
|
PagedSystemMemorySize | Obsolete. Gets the paged system memory size. |
|
PagedSystemMemorySize64 | Gets the amount of pageable system memory allocated for the associated process. |
|
PeakPagedMemorySize | Obsolete. Gets the peak paged memory size. |
|
PeakPagedMemorySize64 | Gets the maximum amount of memory in the virtual memory paging file used by the associated process. |
|
PeakVirtualMemorySize | Obsolete. Gets the peak virtual memory size. |
|
PeakVirtualMemorySize64 | Gets the maximum amount of virtual memory used by the associated process. |
|
PeakWorkingSet | Obsolete. Gets the peak working set size for the associated process. |
|
PeakWorkingSet64 | Gets the maximum amount of physical memory used by 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 | Obsolete. Gets the private memory size. |
|
PrivateMemorySize64 | Gets the amount of private memory allocated for the associated process. |
|
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. |
|
SessionId | Gets the Terminal Services session identifier for the associated process. |
|
Site | Gets or sets the ISite of the Component. (Inherited from Component.) |
|
StandardError | Gets a stream used to read the error output of the application. |
|
StandardInput | Gets a stream used to write the input of the application. |
|
StandardOutput | Gets a stream used to read the output of the application. |
|
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 | Obsolete. Gets the size of the process's virtual memory. |
|
VirtualMemorySize64 | Gets the amount of the virtual memory allocated for the associated process. |
|
WorkingSet | Obsolete. Gets the associated process's physical memory usage. |
|
WorkingSet64 | Gets the amount of physical memory allocated for the associated process. |
| Name | Description | |
|---|---|---|
|
Disposed | Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component.) |
|
ErrorDataReceived | Occurs when an application writes to its redirected StandardError stream. |
|
Exited | Occurs when a process exits. |
|
OutputDataReceived | Occurs when an application writes to its redirected StandardOutput stream. |