wpf 获取本机设备名

//获取本机设备名
    public void Select_Equipemnt()
    {
        string b = Dns.GetHostName();
        string d = Dns.GetHostEntry("localhost").HostName;
        computername = Environment.GetEnvironmentVariable("computername");
    }
发布了115 篇原创文章 · 获赞 36 · 访问量 9899

猜你喜欢

转载自blog.csdn.net/weixin_44548307/article/details/102908943
WPF