| Environment: GetEnvironmentVariable |
Returns an environment variable value.
Public Function GetEnvironmentVariable( ByVal Name As String, Optional ByVal Target As EnvironmentVariableTarget = EnvironmentVariableTarget. Process ) As String
Default: EnvironmentVariableTarget . Process
If the variable does not exist, then an empty string is returned.
A Target of Process will retrieve the variable from the current process. Other targets will retrieve the variable value from the registry.
Project VBCorLib Overview Class Environment Overview Environment Properties Environment Methods GetCommandLineArgs GetEnvironmentVariables