C# 读取windows 环境变量
使用类:Environment
使用方法:GetEnvironmentVariable
示例:
public string GetValue(string name)
{
return Environment.GetEnvironmentVariable(name);
}
使用类:Environment
使用方法:GetEnvironmentVariable
示例:
public string GetValue(string name)
{
return Environment.GetEnvironmentVariable(name);
}