System.Environment.MachineName 值是否可用于非管理员用户运行的程序?
System.Environment.MachineName
请您参考如下方法:
是的。任何用户都可以读取机器名称。