c# winfrom 下载网络资源

/// <summary>
/// 下载网络资源
/// </summary>
/// <param name="url">地址</param>
/// <param name="path">保存下载文件的路径,例:"e:\\1.png"</param>
private void DownLoadFiled(string url, string path)
{
WebClient webClient = new WebClient();
webClient.DownloadFile(url, path);
}

猜你喜欢

转载自www.cnblogs.com/yinmu/p/10993224.html