Export (0) Print
Expand All

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

Show:
© 2014 Microsoft