title: how to use network credential to connect share folder somewhere in the network?
body: <p>this is my code and I want to know how to use network credentials in my code</p>
  <pre><code> string filePath = Path.Combine(@&quot;\\192.168.5.90\uploads&quot;, newfilename);                
       using (var filestream = new FileStream(filePath, FileMode.Create,FileAccess.Write))
       {
        await uploadfile.CopyToAsync(filestream);
       }
        return Ok(newfilename); 
  </code></pre>