title: How to download a file in onedrive
body: <p>I want to download a file from onedrive using c#. </p>
  
  <pre><code>string arquivo = "file.921a7aadee6beb12.921A7AADEE6BEB12!7177";
   string pastaOrigem = "C:\\Users\\Usuario\\Desktop\\Pasta Origem";
   StringBuilder requestDownload = new StringBuilder();
   requestDownload.AppendFormat("https://apis.live.net/v5.0/{0}/content?access token={1}", arquivo, propriedades["access_token"]);
   WebClient myWebClientDownload = new WebClient();
   myWebClientDownload.DownloadFile(requestDownload.ToString(), pastaOrigem);
  </code></pre>