title: How to get local host name in C# on a Windows 10 universal app
body: <pre><code>string machineName = System.Environment.MachineName;
  </code></pre>
  
  <p>This code doesn't work for me, error code 'Environment' does not contain a definition for 'MachineName'</p>
  
  <p>I'm using Visual Studio 2015 and Universal App with C#</p>
  
  <p>Please also list the namespace I need to use when you post an answer.</p>