C# Class Microsoft.OfficeProPlus.Downloader.FileDownloader

Afficher le fichier Open project: OfficeDev/Office-IT-Pro-Deployment-Scripts Class Usage Examples

Méthodes publiques

Méthode Description
DownloadAsync ( string url, string filePath, CancellationToken token = newCancellationToken() ) : Task
GetFileSizeAsync ( string url ) : Task

Private Methods

Méthode Description
client_DownloadFileCompleted ( object sender, AsyncCompletedEventArgs e ) : void
client_DownloadProgressChanged ( object sender, DownloadProgressChangedEventArgs e ) : void

Method Details

DownloadAsync() public méthode

public DownloadAsync ( string url, string filePath, CancellationToken token = newCancellationToken() ) : Task
url string
filePath string
token System.Threading.CancellationToken
Résultat Task

GetFileSizeAsync() public méthode

public GetFileSizeAsync ( string url ) : Task
url string
Résultat Task