xtd
0.2.0
Loading...
Searching...
No Matches
◆
user_name()
[1/2]
const
xtd::string
& xtd::diagnostics::process_start_info::user_name
(
)
const
noexcept
Gets the user name to be used when starting the process.
Returns
The user name to use when starting the process.
Important
The
xtd::diagnostics::process_start_info::working_directory
property must be set if
xtd::diagnostics::process_start_info::user_name
and
xtd::diagnostics::process_start_info::password
are provided. If the property is not set, the default working directory is SYSTEMROOT%\system32.
Remarks
If the
xtd::diagnostics::process_start_info::user_name
property is not an empty string, the
xtd::diagnostics::process_start_info::use_shell_execute
property must be false, or an
xtd::invalid_operation_exception
will be thrown when the
xtd::diagnostics::process
::.
start(xtd::diagnostics::process_start_info)
method is called.
xtd
diagnostics
process_start_info
Generated on Sat Sep 14 2024 21:25:19 for xtd by
Gammasoft
. All rights reserved.