Focus

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
代码
System.Net.WebClient webClient = new System.Net.WebClient();
if (webClient.IsBusy == true)//是否存在正在进行中的Web请求
{
    webClient.CancelAsync();
}

m_strPath 
= DesktopHelp.CDesktopHelp.ExeAbsoluteFile("..\\Bin\\TileCapabilities.xml");
string strURL = m_URL + "/GetCapabilities";
 webClient.DownloadFile(
new Uri(@strURL), m_strPath);

 

posted on 2010-06-02 14:32  Y1  阅读(224)  评论(0编辑  收藏  举报