📜  获取当前计算机名 C# 代码示例

📅  最后修改于: 2022-03-11 14:48:45.390000             🧑  作者: Mango

代码示例1
System.Environment.MachineName //from a console or WinForms app.
HttpContext.Current.Server.MachineName //from a web app
System.Net.Dns.GetHostName() //to get the FQDN