WebClient DownloadFile 用法
生活随笔
收集整理的這篇文章主要介紹了
WebClient DownloadFile 用法
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
using (WebClient myWebClient = new WebClient()){try{myWebClient.DownloadFile(new Uri(href), System.IO.Path.Combine(globePath, System.IO.Path.GetRandomFileName() + System.IO.Path.GetExtension(href)));}catch (Exception ex){}}
轉(zhuǎn)載于:https://www.cnblogs.com/hbsfgl/p/5022191.html
總結(jié)
以上是生活随笔為你收集整理的WebClient DownloadFile 用法的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 删除元素(LintCode)
- 下一篇: 2015-12-08 English