This documentation is archived and is not being maintained.

Process Members

Process overview

Public Constructors

public constructorProcess Constructor Initializes a new instance of the Process class.

Public Properties

public propertyBasePriority Gets the base priority of the associated process.
public propertyContainer (inherited from Component) Gets the IContainer that contains the Component.
public propertyEnableRaisingEvents Gets or sets whether the Exited event should be raised when the process terminates.
public propertyExitCode Gets the value that the associated process specified when it terminated.
public propertyExitTime Gets the time that the associated process exited.
public propertyHandle Returns the associated process's native handle.
public propertyHandleCount Gets the number of handles opened by the process.
public propertyHasExited Gets a value indicating whether the associated process has been terminated.
public propertyId Gets the unique identifier for the associated process.
public propertyMachineName Gets the name of the computer the associated process is running on.
public propertyMainModule Gets the main module for the associated process.
public propertyMainWindowHandle Gets the window handle of the main window of the associated process.
public propertyMainWindowTitle Gets the caption of the main window of the process.
public propertyMaxWorkingSet Gets or sets the maximum allowable working set size for the associated process.
public propertyMinWorkingSet Gets or sets the minimum allowable working set size for the associated process.
public propertyModules Gets the modules that have been loaded by the associated process.
public propertyNonpagedSystemMemorySize Gets the nonpaged system memory size allocated to this process.
public propertyPagedMemorySize Gets the paged memory size.
public propertyPagedSystemMemorySize Gets the paged system memory size.
public propertyPeakPagedMemorySize Gets the peak paged memory size.
public propertyPeakVirtualMemorySize Gets the peak virtual memory size.
public propertyPeakWorkingSet Gets the peak working set size for the associated process.
public propertyPriorityBoostEnabled 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.
public propertyPriorityClass Gets or sets the overall priority category for the associated process.
public propertyPrivateMemorySize Gets the private memory size.
public propertyPrivilegedProcessorTime Gets the privileged processor time for this process.
public propertyProcessName Gets the name of the process.
public propertyProcessorAffinity Gets or sets the processors on which the threads in this process can be scheduled to run.
public propertyResponding Gets a value indicating whether the user interface of the process is responding.
public propertySite (inherited from Component) Gets or sets the ISite of the Component.
public propertyStandardError Gets a stream used to read the application's error output.
public propertyStandardInput Gets a stream used to write the application's input.
public propertyStandardOutput Gets a stream used to read the application's output.
public propertyStartInfo Gets or sets the properties to pass to the Start method of the Process.
public propertyStartTime Gets the time that the associated process was started.
public propertySynchronizingObject Gets or sets the object used to marshal the event handler calls that are issued as a result of a process exit event.
public propertyThreads Gets the set of threads that are running in the associated process.
public propertyTotalProcessorTime Gets the total processor time for this process.
public propertyUserProcessorTime Gets the user processor time for this process.
public propertyVirtualMemorySize Gets the size of the process's virtual memory.
public propertyWorkingSet Gets the associated process's physical memory usage.

Public Methods

public methodClose Frees all the resources that are associated with this component.
public methodCloseMainWindow Closes a process that has a user interface by sending a close message to its main window.
public methodCreateObjRef (inherited from MarshalByRefObject) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
public methodDispose (inherited from Component) Overloaded. Releases the resources used by the Component.
public methodstatic (Shared in Visual Basic)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.
public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodstatic (Shared in Visual Basic)GetCurrentProcess Gets a new Process component and associates it with the currently active process.
public methodGetHashCode (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.
public methodGetLifetimeService (inherited from MarshalByRefObject) Retrieves the current lifetime service object that controls the lifetime policy for this instance.
public methodstatic (Shared in Visual Basic)GetProcessById Overloaded. Creates a new Process component, and associates it with the existing process resource that you specify.
public methodstatic (Shared in Visual Basic)GetProcesses Overloaded. Creates an array of new Process components and associates them with existing process resources.
public methodstatic (Shared in Visual Basic)GetProcessesByName Overloaded. Creates an array of new Process components and associates them with the existing process resources that all share the specified process name.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodInitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
public methodKill Immediately stops the associated process.
public methodstatic (Shared in Visual Basic)LeaveDebugMode Takes a Process component out of the state that lets it interact with operating system processes that run in a special mode.
public methodRefresh Discards any information about the associated process that has been cached inside the process component.
public methodStart Overloaded. Starts a process resource and associates it with a Process component.
public methodToString Overridden. Formats the process's name as a string, combined with the parent component type, if applicable.
public methodWaitForExit 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.
public methodWaitForInputIdle Overloaded. Causes the Process component to wait for the associated process to enter an idle state.

Public Events

public eventDisposed (inherited from Component) Adds an event handler to listen to the Disposed event on the component.
public eventExited Occurs when a process exits.

Protected Properties

protected propertyDesignMode (inherited from Component) Gets a value that indicates whether the Component is currently in design mode.
protected propertyEvents (inherited from Component) Gets the list of event handlers that are attached to this Component.

Protected Methods

protected methodDispose Overloaded. Overridden. See Component.Dispose.
protected methodFinalize (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.

protected methodGetService (inherited from Component) Returns an object that represents a service provided by the Component or by its Container.
protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
protected methodOnExited Raises the Exited event.

See Also

Process Class | System.Diagnostics Namespace

Show: