Environment: GetEnvironmentVariables

GetEnvironmentVariables

Returns an IDictionary object containing all environment variables as name/value pairs.



 Public Function GetEnvironmentVariables(
	  Optional ByVal Target As EnvironmentVariableTarget = Process ) As IDictionary

Parameters

Target
[ByVal] Optional. EnvironmentVariableTarget. The system region to retrieve the environment variable from.  

Default: Process

Return Values

IDictionary -  A dictionary containing the name/value pairs.

Remarks

The hidden environment variables are not included in the dictionary.

A Target of Process will retrieve the variable from the current process. Other targets will retrieve the variable value from the registry.

See Also

Project VBCorLib Overview Class Environment Overview Environment Properties Environment Methods GetEnvironmentVariable GetFolderPath