ArtOfWords.Models.Salesman.AdsDownloader.AsyncLoadFile C# (CSharp) Метод

AsyncLoadFile() приватный Метод

private AsyncLoadFile ( string sourceFilePath, string destinationPath ) : void
sourceFilePath string
destinationPath string
Результат void
        private void AsyncLoadFile(string sourceFilePath, string destinationPath)
        {
            try
            {
                //ダウンロード基のURL
                Uri u = new Uri(sourceFilePath);
                WebClient downloadClient = new System.Net.WebClient();
                downloadClient.DownloadFileCompleted +=
                    new System.ComponentModel.AsyncCompletedEventHandler(
                        downloadClient_DownloadFileCompleted);
                //非同期ダウンロードを開始する
                downloadClient.DownloadFileAsync(u, destinationPath);
            }
            catch (Exception)
            {
            }
        }