Raises the Exited event.
Assembly: System (in System.dll)
is the API method that raises the Exited event. Calling causes the Exited event to occur and is the only way to raise the event using the Process component. is primarily used when deriving classes from the component.
As an alternative to , you can write your own event handler. You create your own event handler delegate and your own event-handling method.
If you are using the Visual Studio environment, an event handler delegate (AddOnExited) and an event-handling method (Process1_Exited) are created for you when you drag a Process component onto a form and double-click the icon. The code you create to run when the Exited event occurs is entered into the Process1_Exited procedure. You do not need to create the member, because it is implemented for you.
Raising an event invokes the event handler through a delegate. For an overview, see Handling and Raising Events.
for full trust for the immediate caller. This member cannot be used by partially trusted code.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)