Skip to content

QuantumGate::Local::Environment::GetUsername

Karel Donk edited this page Nov 26, 2018 · 1 revision

Gets the user name that the QuantumGate local instance is running under.

Signature

const String& GetUsername() const noexcept;

Return values

Returns a QuantumGate::Result object equal to one of the following QuantumGate::ResultCodes:

Value Description
QuantumGate::ResultCode::Succeeded The operation succeeded.
QuantumGate::ResultCode::Failed The operation failed.

Upon successful completion the result also contains a QuantumGate::String with the user name.

Clone this wiki locally