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

Process.WaitForExit Method

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.

Overload List

Instructs the Process component to wait indefinitely for the associated process to exit.

[Visual Basic] Overloads Public Sub WaitForExit()
[C#] public void WaitForExit();
[C++] public: void WaitForExit();
[JScript] public function WaitForExit();

Instructs the Process component to wait the specified number of milliseconds for the associated process to exit.

[Visual Basic] Overloads Public Function WaitForExit(Integer) As Boolean
[C#] public bool WaitForExit(int);
[C++] public: bool WaitForExit(int);
[JScript] public function WaitForExit(int) : Boolean;

See Also

Process Class | Process Members | System.Diagnostics Namespace

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