Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

Process Methods

The methods of the Process class are listed here. For a complete list of Process class members, see the Process Members topic.

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.

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.