DriveClientDownloadFileAsync(Uri, String, ActionIDownloadProgress, CancellationToken) Method

Asynchronously downloads the specified file.

Definition

Namespace: DevCase.ThirdParty.Google.Drive
Assembly: DevCase.net48.ThirdParty.GoogleServices (in DevCase.net48.ThirdParty.GoogleServices.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public Task<IDownloadProgress> DownloadFileAsync(
	Uri uri,
	string dstFilePath,
	Action<IDownloadProgress> progressHandler,
	CancellationToken cancellationToken
)

Parameters

uri  Uri
A Google Drive Uri that points to the file to download.
dstFilePath  String
The destination file path where to save the downloaded file.
progressHandler  ActionIDownloadProgress
A event handler that will receive progress changes of the download operation.
cancellationToken  CancellationToken
A cancellation token to cancel the download operation.

Return Value

TaskIDownloadProgress
The resulting TaskTResult.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also