title: C#: How to logon to a share when using DirectoryInfo
body: <p>If I want to instantiate a DirectoryInfo object with an UNC path </p>
  
  <pre><code>DirectoryInfo myDI = new DirectoryInfo (@"\\server\share");
  </code></pre>
  
  <p>how can I pass a username / password that is required to access that share?</p>
  
  <p>Thanks</p>