Create, modifie, or delete an environment variable stored in the current process in CSharp
Description
The following code shows how to create, modifie, or delete an environment variable stored in the current process.
Example
using System;//from w w w . ja va 2s . c o m
public class Example
{
public static void Main()
{
String envName = "AppDomain";
String envValue = "True";
if (Environment.GetEnvironmentVariable(envName) == null)
Environment.SetEnvironmentVariable(envName, envValue);
}
}