Environment Variables for Simple Security Tasks : Environment Settings : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » Environment Settings »

 

Environment Variables for Simple Security Tasks









    


using System;
namespace SimpleSecurity
{
  class Class1
  {
    [STAThread]
    static void Main(string[] args)
    {
      Console.WriteLine("I am currently running as:");
      Console.WriteLine("User   : {0}",Environment.UserName);
      Console.WriteLine("Domain : {0}",Environment.UserDomainName);
    }
  }
}

           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» Environment Settings