NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Process Methods

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

Public:

Close Frees any resources associated with this component.
CloseMainWindow Closes a process that has a user interface by sending a close message to its main window.
Dispose (inherited from Component) Disposes of the Component.
Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
GetContainer (inherited from Component) Returns the IContainer that contains the Component.
GetCurrentProcess Returns a new Process component and associates it with the current active process.
GetDesignMode (inherited from Component) Gets a value indicating whether the Component is currently in design mode.
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.
GetProcessById Overloaded. Creates a new Process component, associating it with the existing process resource specified by the processId parameter.
GetProcesses Overloaded. Creates an array of new Process components, associating them with existing process resources on the specified computer.
GetProcessesByName Overloaded. Creates an array of new Process components, associating them with the existing process resources specified by the processName parameter.
GetServiceObject (inherited from Component) Returns an object representing a service provided by the Component.
GetType (inherited from Object) Gets the Type of the Object.
Kill Stops the associated process immediately.
Refresh Discards any information about the associated process that has been cached inside the process component. After Refresh is called, the first request for information for each property causes the process component to obtain a new value from the associated process.
Start Overloaded. Starts a process resource and associates it with a Process component.
ToString (inherited from Component) Returns a String containing the name of the Component, if any. This method should not be overridden. For internal use only.
WaitForExit Overloaded. Sets a period to wait for the associated process to exit.
WaitForInputIdle Overloaded. Instructs the Process component to wait for the associated process to enter an idle state.

Protected:

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
OnExited Raises the System.Diagnostics.Process.Exited event.

Event Hookup:

AddOnExited Adds the Exited event handler.
RemoveOnExited Remove the Exited event handler.

See Also

Process Class | System.Diagnostics Namespace