Gets a value indicating whether the associated process has been terminated.
- Returns
- true if the operating system process referenced by the process component has terminated; otherwise, false.
- Exceptions
-
- Note
- When standard output has been redirected to asynchronous event handlers, it is possible that output processing will not have completed when HasExited returns true. To ensure that asynchronous event handling has been completed, call the xtd::diagnostics::wait_for_exit() overload that takes no parameter before checking xtd::diagnostics::has_exited.