BackgroundDownloader backgroundDownloader = new BackgroundDownloader(); var credentials = GetNetworkCredential(); backgroundDownloader.ServerCredential = new Windows.Security.Credentials.PasswordCredential("Lighthouse", credentials.UserName, credentials.Password); CancellationTokenSource cts = new CancellationTokenSource(); DownloadOperation downloadOperation = backgroundDownloader.CreateDownload(new Uri(System.Net.WebUtility.UrlDecode(searchDoc.Path)), fileToSave); downloadOperation.StartAsync();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)