GetEnvironmentVariables()

Environment::GetEnvironmentVariables() method

Returns a dictionary containing all environment variables names and their values associated with the current process.

static Collections::Generic::DictionaryPtr<String, String> System::Environment::GetEnvironmentVariables()

Environment::GetEnvironmentVariables(EnvironmentVariableTarget) method

Returns a dictionary containing all environment variables’ names and their values from the specified location.

static Collections::Generic::DictionaryPtr<String, String> System::Environment::GetEnvironmentVariables(EnvironmentVariableTarget target)

Arguments

ParameterTypeDescription
targetEnvironmentVariableTargetThe location of the variables

Return Value

A dictionary containing all environment variables’ names and their values from the specified location

See Also