コード例 #1
0
ファイル: FTPHelper.cs プロジェクト: eagle6688/DevUtility
 public void UploadAsync(string path, string ftpPath, bool overwrite)
 {
     using (WebClient webClient = webClientHelper.Create())
     {
         webClient.UploadProgressChanged += new UploadProgressChangedEventHandler(UploadProgressChanged);
         webClient.UploadFileCompleted   += new UploadFileCompletedEventHandler(UploadFileCompleted);
         webClient.UploadFileAsync(new Uri(ftpPath), path);
     }
 }