DriveClientDownloadFileAsync(String, String) Method
Asynchronously downloads the specified file.
Namespace: DevCase.ThirdParty.Google.DriveAssembly: 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(
string url,
string dstFilePath
)
Public Function DownloadFileAsync (
url As String,
dstFilePath As String
) As Task(Of IDownloadProgress)
Dim instance As DriveClient
Dim url As String
Dim dstFilePath As String
Dim returnValue As Task(Of IDownloadProgress)
returnValue = instance.DownloadFileAsync(url,
dstFilePath)
public:
Task<IDownloadProgress^>^ DownloadFileAsync(
String^ url,
String^ dstFilePath
)
member DownloadFileAsync :
url : string *
dstFilePath : string -> Task<IDownloadProgress>
No code example is currently available or this language may not be supported.
- url String
-
A Google Drive url that points to the file to download.
- dstFilePath String
-
The destination file path where to save the downloaded file.
TaskIDownloadProgress
The resulting
TaskTResult.
This is a code example.
No code example is currently available or this language may not be supported.
Dim client As New DriveClient("C:\GoogleSecrets.json", "yourmail@gmail.com", DriveScopes.Full Or DriveScopes.Metadata)
Dim credential As UserCredential = Await client.AuthorizeAsync()
Dim url As String = "https://drive.google.com/uc?export=download&id=1B04WDF5Df8zYN2NXMlRlMlhYbm8"
Dim progress As Google.Apis.Download.IDownloadProgress = Await client.DownloadFileAsync(url, dstFile)
Dim status As Google.Apis.Download.DownloadStatus = progress.Status
Console.WriteLine(status)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.