xtd 0.2.0
Loading...
Searching...
No Matches

◆ machine_name()

ustring xtd::diagnostics::process::machine_name ( ) const

Gets the name of the computer the associated process is running on.

Returns
The name of the computer that the associated process is running on.
Exceptions
xtd::invalid_operation_exceptionThere is no process associated with this xtd::diagnostics::process object.
Remarks
You can view statistical data and process information for processes running on remote computers but you cannot call xtd::diagnostics::process::start, xtd::diagnostics::process::close_main_window, or xtd::diagnostics::process::kill on remote computers.
Note
When the associated process is executing on the local machine, this property returns a period (".") for the machine name. You should use the xtd::environment::machine_name property to get the correct machine name.