process & xtd::diagnostics::process::enable_raising_events | ( | bool | value | ) |
Sets whether the xtd::diagnostics::process::exited event should be raised when the process terminates.
value | true if the xtd::diagnostics::process::exited event should be raised when the associated process is terminated (through either an exit or a call to xtd::diagnostics::process::kill()); otherwise, false. The default is false. Note that the xtd::diagnostics::process::exited event is raised even if the value of xtd::diagnostics::process::enable_raising_events is false when the process exits during or before the user performs a xtd::diagnostics::process::has_exited check. |