GetEnvironmentVariable()

Environment::GetEnvironmentVariable(const String&) method

Returns the value of the specified environment varibale associated with the current process.

static String System::Environment::GetEnvironmentVariable(const String &variable)

Arguments

ParameterTypeDescription
variableconst String&The string containing the name of the variable to retrieve

Return Value

The value of the specified variable

Environment::GetEnvironmentVariable(const String&, EnvironmentVariableTarget) method

Returns the value of the specified environment varibale from the specified location.

static String System::Environment::GetEnvironmentVariable(const String &variable, EnvironmentVariableTarget target)

Arguments

ParameterTypeDescription
variableconst String&The string containing the name of the variable to retrieve
targetEnvironmentVariableTargetThe location of the variable

Return Value

The value of the specified variable

See Also