DriveClientUploadFile(FileInfo, File, String) Method

Uploads a 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 KeyValuePair<ResumableUpload, File> UploadFile(
	FileInfo srcFile,
	File dstFile,
	params string[] parentFolderIds
)

Parameters

srcFile  FileInfo
The source file to upload.
dstFile  File
The metadata of the file being uploaded.

In the metadata you can specify values like the destination filename, description, folder destination, etc...

parentFolderIds  String
The identifier of the parent folder(s) where to upload the file.

This paramenter can be empty (nul).

Return Value

KeyValuePairResumableUpload, File
The resulting KeyValuePairTKey, TValue.

Example

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

See Also