C# 读取windows 环境变量

使用类:Environment
使用方法:GetEnvironmentVariable
示例:

public string GetValue(string name)
{
    return Environment.GetEnvironmentVariable(name);
}
posted @ 2023-11-27 17:50  Simian_2018_12_22  阅读(39)  评论(0编辑  收藏  举报