Skip to content

QuantumGate::Local::Environment::GetHostname

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

Gets the host name of the system.

Signature

Result<String> GetHostname() 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 host name of the system.

Clone this wiki locally