DriveClientUpdateFileAsync(FileInfo, String, ActionIUploadProgress, CancellationToken) Method

Asynchronously updates (replaces) a existing file in the specified folder.

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<KeyValuePair<ResumableUpload, File>> UpdateFileAsync(
	FileInfo srcFile,
	string dstFileId,
	Action<IUploadProgress> progressHandler,
	CancellationToken cancellationToken
)

Parameters

srcFile  FileInfo
The source file to upload.
dstFileId  String
The identifier of the existing file being updated.
progressHandler  ActionIUploadProgress
A event handler that will receive progress changes of the upload operation.
cancellationToken  CancellationToken
A cancellation token to cancel the upload operation.

Return Value

TaskKeyValuePairResumableUpload, File
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