Export (0) Print
Expand All
1 out of 3 rated this helpful - Rate this topic

Process Methods

The Process type exposes the following members.

  Name Description
Public method BeginErrorReadLine Begins asynchronous read operations on the redirected StandardError stream of the application.
Public method BeginOutputReadLine Begins asynchronous read operations on the redirected StandardOutput stream of the application.
Public method CancelErrorRead Cancels the asynchronous read operation on the redirected StandardError stream of an application.
Public method CancelOutputRead Cancels the asynchronous read operation on the redirected StandardOutput stream of an application.
Public method Close Frees all the resources that are associated with this component.
Public method CloseMainWindow Closes a process that has a user interface by sending a close message to its main window.
Public method 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.)
Public method Dispose() Releases all resources used by the Component. (Inherited from Component.)
Protected method Dispose(Boolean) Infrastructure. Release all resources used by this process. (Overrides Component.Dispose(Boolean).)
Public method Static member 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 method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public method Static member GetCurrentProcess Gets a new Process component and associates it with the currently active process.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method Static member GetProcessById(Int32) Returns a new Process component, given the identifier of a process on the local computer.
Public method Static member GetProcessById(Int32, String) Returns a new Process component, given a process identifier and the name of a computer on the network.
Public method Static member GetProcesses() Creates a new Process component for each process resource on the local computer.
Public method Static member GetProcesses(String) Creates a new Process component for each process resource on the specified computer.
Public method Static member GetProcessesByName(String) Creates an array of new Process components and associates them with all the process resources on the local computer that share the specified process name.
Public method Static member GetProcessesByName(String, String) Creates an array of new Process components and associates them with all the process resources on a remote computer that share the specified process name.
Protected method GetService Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method Kill Immediately stops the associated process.
Public method Static member LeaveDebugMode Takes a Process component out of the state that lets it interact with operating system processes that run in a special mode.
Protected method MemberwiseClone() Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method MemberwiseClone(Boolean) Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Protected method OnExited Raises the Exited event.
Public method Refresh Discards any information about the associated process that has been cached inside the process component.
Public method Start() Starts (or reuses) the process resource that is specified by the StartInfo property of this Process component and associates it with the component.
Public method Static member Start(ProcessStartInfo) Starts the process resource that is specified by the parameter containing process start information (for example, the file name of the process to start) and associates the resource with a new Process component.
Public method Static member Start(String) Starts a process resource by specifying the name of a document or application file and associates the resource with a new Process component.
Public method Static member Start(String, String) Starts a process resource by specifying the name of an application and a set of command-line arguments, and associates the resource with a new Process component.
Public method Static member Start(String, String, SecureString, String) Starts a process resource by specifying the name of an application, a user name, a password, and a domain and associates the resource with a new Process component.
Public method Static member Start(String, String, String, SecureString, String) Starts a process resource by specifying the name of an application, a set of command-line arguments, a user name, a password, and a domain and associates the resource with a new Process component.
Public method ToString Formats the process's name as a string, combined with the parent component type, if applicable. (Overrides Component.ToString().)
Public method WaitForExit() Instructs the Process component to wait indefinitely for the associated process to exit.
Public method WaitForExit(Int32) Instructs the Process component to wait the specified number of milliseconds for the associated process to exit.
Public method WaitForInputIdle() Causes the Process component to wait indefinitely for the associated process to enter an idle state. This overload applies only to processes with a user interface and, therefore, a message loop.
Public method WaitForInputIdle(Int32) Causes the Process component to wait the specified number of milliseconds for the associated process to enter an idle state. This overload applies only to processes with a user interface and, therefore, a message loop.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.