DriveClient Class

A client for Google Drive service.

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 sealed class DriveClient : IDisposable
Inheritance
Object    DriveClient
Implements
IDisposable

Constructors

DriveClient(String, MailAddress, DriveScopes) Initializes a new instance of the DriveClient class.
DriveClient(String, String, DriveScopes) Initializes a new instance of the DriveClient class.

Properties

IsAuthorized Gets a value that determines whether Google Drive API authorization was done.
MailAddress Gets the mail address to authorize Drive service. (e.g: "yourmail@gmail.com")
Scope Gets the current Drive OAuthv2 scopes.
Secrets Gets the client credentials.

Methods

Authorize Authorizes this instance to use Google Drive API services.
AuthorizeAsync Authorizes this instance to use Google Drive API services.
CreateFolder Creates a new folder in the Google Drive of the user account.
CreateFolderAsync Asynchronously creates a new folder in the Google Drive of the user account.
DeleteFile(File) Permanently deletes a existing file from the Google Drive of the user account.
DeleteFile(String) Permanently deletes a existing file from the Google Drive of the user account.
DeleteFileAsync(File) Asynchronously permanently deletes a existing file from the Google Drive of the user account.
DeleteFileAsync(String) Asynchronously permanently deletes a existing file from the Google Drive of the user account.
DeleteFolder(File) Permanently deletes a existing folder (including all its files inside) from the Google Drive of the user account.
DeleteFolder(String) Permanently deletes a existing folder (including all its files inside) from the Google Drive of the user account.
DeleteFolderAsync(File) Asynchronously permanently deletes a existing folder (including all its files inside) from the Google Drive of the user account.
DeleteFolderAsync(String) Asynchronously permanently deletes a existing folder (including all its files inside) from the Google Drive of the user account.
Dispose Releases all the resources used by this instance.
DownloadFile(File, String) Downloads the specified file.
DownloadFile(String, String) Downloads the specified file.
DownloadFile(Uri, String) Downloads the specified file.
DownloadFileAsync(File, String) Asynchronously downloads the specified file.
DownloadFileAsync(String, String) Asynchronously downloads the specified file.
DownloadFileAsync(Uri, String) Asynchronously downloads the specified file.
DownloadFileAsync(File, String, ActionIDownloadProgress, CancellationToken) Asynchronously downloads the specified file.
DownloadFileAsync(String, String, ActionIDownloadProgress, CancellationToken) Asynchronously downloads the specified file.
DownloadFileAsync(Uri, String, ActionIDownloadProgress, CancellationToken) Asynchronously downloads the specified file.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetFileById Gets a file stored in the current user account that matches the specified file id.
GetFileByIdAsync Asynchronously gets a file stored in the current user account that matches the specified file id.
GetFiles Gets all the files stored in the current user account.
GetFiles(FuncFile, Boolean) Gets the files stored in the current user account that matches the specified search criteria.
GetFilesAsync Asynchronously gets all the files stored in the current user account.
GetFilesAsync(FuncFile, Boolean) Asynchronously gets the files stored in the current user account that matches the specified search criteria.
GetFilesByName Gets the files stored in the current user account that matches the specified name.
GetFilesByNameAsync Asynchronously gets the files stored in the current user account that matches the specified name.
GetFolderById Gets a folder stored in the current user account that matches the specified folder id.
GetFolderByIdAsync Asynchronously gets a folder stored in the current user account that matches the specified folder id.
GetFolders Gets all the folders stored in the current user account.
GetFolders(FuncFile, Boolean) Gets the folders stored in the current user account that matches the specified search criteria.
GetFoldersAsync Asynchronously gets all the folders stored in the current user account.
GetFoldersAsync(FuncFile, Boolean) Asynchronously gets the folders stored in the current user account that matches the specified search criteria.
GetFoldersByName Gets the folders stored in the current user account that matches the specified name.
GetFoldersByNameAsync Asynchronously gets the folders stored in the current user account that matches the specified name.
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetItems Gets all the files and folders stored in the current user account.
GetItems(FuncFile, Boolean) Gets the files and folders stored in the current user account that matches the specified search criteria.
GetItemsAsync Asynchronously gets all the files and folders stored in the current user account.
GetItemsAsync(FuncFile, Boolean) Asynchronously gets the files and folders stored in the current user account that matches the specified search criteria.
GetItemsByName Gets the files and folders stored in the current user account that are owned by him and matches the specified name.
GetItemsByNameAsync Asynchronously gets the files and folders stored in the current user account that are owned by him and matches the specified name.
GetOwnedFileById Gets a file stored in the current user account that is owned by him and matches the specified file id.
GetOwnedFileByIdAsync Asynchronously gets a file stored in the current user account that is owned by him and matches the specified file id.
GetOwnedFiles Gets the files stored in the current user account that are owned by him.
GetOwnedFiles(FuncFile, Boolean) Gets the files stored in the current user account that are owned by him and matches the specified search criteria.
GetOwnedFilesAsync Asynchronously gets the files stored in the current user account that are owned by him.
GetOwnedFilesAsync(FuncFile, Boolean) Asynchronously gets the files stored in the current user account that are owned by him and matches the specified search criteria.
GetOwnedFilesByName Gets the files stored in the current user account that are owned by him and matches the specified name.
GetOwnedFilesByNameAsync Asynchronously gets the files stored in the current user account that are owned by him and matches the specified name.
GetOwnedFolderById Gets a folder stored in the current user account that are owned by him and matches the specified folder id.
GetOwnedFolderByIdAsync Asynchronously gets a folder stored in the current user account that are owned by him and matches the specified folder id..
GetOwnedFolders Gets the folders stored in the current user account that are owned by him.
GetOwnedFolders(FuncFile, Boolean) Gets the folders stored in the current user account that are owned by him and matches the specified search criteria.
GetOwnedFoldersAsync Asynchronously gets the folders stored in the current user account that are owned by him.
GetOwnedFoldersAsync(FuncFile, Boolean) Asynchronously gets the folders stored in the current user account that are owned by him and matches the specified search criteria.
GetOwnedFoldersByName Gets the folders stored in the current user account that are owned by him and matches the specified name.
GetOwnedFoldersByNameAsync Asynchronously gets the folders stored in the current user account that are owned by him and matches the specified name.
GetOwnedItems Gets the files and folders stored in the current user account that are owned by him.
GetOwnedItems(FuncFile, Boolean) Gets the files and folders stored in the current user account that are owned by him and matches the specified search criteria.
GetOwnedItemsAsync Asynchronously gets the files and folders stored in the current user account that are owned by him.
GetOwnedItemsAsync(FuncFile, Boolean) Asynchronously gets the files and folders stored in the current user account that are owned by him and matches the specified search criteria.
GetOwnedItemsByName Gets the files and folders stored in the current user account that are owned by him and matches the specified name.
GetOwnedItemsByNameAsync Asynchronously gets the files and folders stored in the current user account that are owned by him and matches the specified name.
GetType Gets the Type of the current instance.
(Inherited from Object)
ToString Returns a string that represents the current object.
(Inherited from Object)
UpdateFile(FileInfo, File) Updates (replaces) a existing file in the specified folder.
UpdateFile(FileInfo, String) Updates (replaces) a existing file in the specified folder.
UpdateFileAsync(FileInfo, File, ActionIUploadProgress, CancellationToken) Asynchronously updates (replaces) a existing file in the specified folder.
UpdateFileAsync(FileInfo, String, ActionIUploadProgress, CancellationToken) Asynchronously updates (replaces) a existing file in the specified folder.
UploadFile(FileInfo, String) Uploads a file in the specified folder.
UploadFile(FileInfo, File, String) Uploads a file in the specified folder.
UploadFileAsync(FileInfo, ActionIUploadProgress, CancellationToken, String) Asynchronously uploads a file in the specified folder.
UploadFileAsync(FileInfo, File, ActionIUploadProgress, CancellationToken, String) Asynchronously uploads a file in the specified folder.

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also