Environment.GetEnvironmentVariables(EnvironmentVariableTarget.Process) : Environment Settings : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » Environment Settings »

 

Environment.GetEnvironmentVariables(EnvironmentVariableTarget.Process)








    
 


using System;
using System.Collections;

class MainClass {
    public static void Main() {
        IDictionary vars = Environment.GetEnvironmentVariables(EnvironmentVariableTarget.Process);
        foreach (string s in vars.Keys) {
            if (s.ToUpper().StartsWith("U")) {
                Console.WriteLine(s + " = " + vars[s]);
            }
        }
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» Environment Settings