How do I get the local machine name in C#?

后端 未结 5 869
梦谈多话
梦谈多话 2020-11-27 18:27

How do I get the local machine name?

5条回答
  •  一整个雨季
    2020-11-27 19:32

    System.Environment.MachineName

    It works unless a machine name has more than 15 characters.

提交回复
热议问题