Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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. To avoid blocking the current thread, use the Exited event.

For code examples, see the StandardError and the ExitCode property reference pages.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
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.
Top
Show:
© 2015 Microsoft