GmailClient Class

A client for Gmail services.

Definition

Namespace: DevCase.ThirdParty.Google.Gmail
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 GmailClient : IDisposable
Inheritance
Object    GmailClient
Implements
IDisposable

Example

This example demonstrates how to iterate the messages contained in the "Inbox" mailbox folder to retrieve message info.
C#
No code example is currently available or this language may not be supported.

Constructors

GmailClient(String, MailAddress, GmailScopes) Initializes a new instance of the GmailClient class.
GmailClient(String, String, GmailScopes) Initializes a new instance of the GmailClient class.

Properties

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

Methods

Authorize Authorizes this instance to use GMail API services.
AuthorizeAsync Authorizes this instance to use Gmail API services.
DeleteMessage Permanentlly deletes the specified message.
DeleteMessageAsync Asynchronously permanentlly deletes the specified message.
Dispose Releases all the resources used by this instance.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetFolderAsyncByDisplayName Asynchronously gets a mailbox folder that satisfies the specified display name.
GetFolderAsyncById Asynchronously gets a mailbox folder that satisfies the specified id.
GetFolderAsyncByKnownId Asynchronously gets a mailbox folder that satisfies the specified known Id.
GetFolderByDisplayName Gets a mailbox folder that satisfies the specified display name.
GetFolderById Gets a mailbox folder that satisfies the specified id.
GetFolderByKnownId Gets a mailbox folder that satisfies the specified known Id.
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetMessages Gets the messages contained in the specified mailbox folder.
GetMessagesAsync Asynchronously gets the messages contained in the specified mailbox folder.
GetType Gets the Type of the current instance.
(Inherited from Object)
RecycleMessage Sends the specified message to the Trash folder.
RecycleMessageAsync Asynchronously sends the specified message to the Trash folder.
SendMessageHtml(String, String, MailAddress) Sends a mail with a HTML body.
SendMessageHtml(String, String, MailAddressCollection) Sends a mail with a HTML body.
SendMessageHtml(String, String, String) Sends a mail with a HTML body.
SendMessageHtml(String, String, String) Sends a mail with a HTML body.
SendMessageHtml(String, String, MailAddress, ICollectionAttachment) Sends a mail with a HTML body.
SendMessageHtml(String, String, MailAddress, Attachment) Sends a mail with a HTML body.
SendMessageHtml(String, String, MailAddressCollection, ICollectionAttachment) Sends a mail with a HTML body.
SendMessageHtml(String, String, MailAddressCollection, Attachment) Sends a mail with a HTML body.
SendMessageHtml(String, String, String, ICollectionAttachment) Sends a mail with a HTML body.
SendMessageHtml(String, String, String, Attachment) Sends a mail with a HTML body.
SendMessageHtml(String, String, String, ICollectionAttachment) Sends a mail with a HTML body.
SendMessageHtml(String, String, String, Attachment) Sends a mail with a HTML body.
SendMessageHtmlAsync(String, String, MailAddress) Asynchronously sends a mail with a HTML body.
SendMessageHtmlAsync(String, String, MailAddressCollection) Asynchronously sends a mail with a HTML body.
SendMessageHtmlAsync(String, String, String) Asynchronously sends a mail with a HTML body.
SendMessageHtmlAsync(String, String, String) Asynchronously sends a mail with a HTML body.
SendMessageHtmlAsync(String, String, MailAddress, ICollectionAttachment) Asynchronously sends a mail with a HTML body.
SendMessageHtmlAsync(String, String, MailAddress, Attachment) Asynchronously sends a mail with a HTML body.
SendMessageHtmlAsync(String, String, MailAddressCollection, ICollectionAttachment) Asynchronously sends a mail with a HTML body.
SendMessageHtmlAsync(String, String, MailAddressCollection, Attachment) Asynchronously sends a mail with a HTML body.
SendMessageHtmlAsync(String, String, String, ICollectionAttachment) Asynchronously sends a mail with a HTML body.
SendMessageHtmlAsync(String, String, String, Attachment) Asynchronously sends a mail with a HTML body.
SendMessageHtmlAsync(String, String, String, ICollectionAttachment) Asynchronously sends a mail with a HTML body.
SendMessageHtmlAsync(String, String, String, Attachment) Asynchronously sends a mail with a HTML body.
SendMessageText(String, String, MailAddress) Sends a mail with a plain text body.
SendMessageText(String, String, MailAddressCollection) Sends a mail with a plain text body.
SendMessageText(String, String, String) Sends a mail with a plain text body.
SendMessageText(String, String, String) Sends a mail with a plain text body.
SendMessageText(String, String, MailAddress, ICollectionAttachment) Sends a mail with a plain text body.
SendMessageText(String, String, MailAddress, Attachment) Sends a mail with a plain text body.
SendMessageText(String, String, MailAddressCollection, ICollectionAttachment) Sends a mail with a plain text body.
SendMessageText(String, String, MailAddressCollection, Attachment) Sends a mail with a plain text body.
SendMessageText(String, String, String, ICollectionAttachment) Sends a mail with a plain text body.
SendMessageText(String, String, String, Attachment) Sends a mail with a plain text body.
SendMessageText(String, String, String, ICollectionAttachment) Sends a mail with a plain text body.
SendMessageText(String, String, String, Attachment) Sends a mail with a plain text body.
SendMessageTextAsync(String, String, MailAddress) Asynchronously sends a mail with a plain text body.
SendMessageTextAsync(String, String, MailAddressCollection) Asynchronously sends a mail with a plain text body.
SendMessageTextAsync(String, String, String) Asynchronously sends a mail with a plain text body.
SendMessageTextAsync(String, String, String) Asynchronously sends a mail with a plain text body.
SendMessageTextAsync(String, String, MailAddress, ICollectionAttachment) Asynchronously sends a mail with a plain text body.
SendMessageTextAsync(String, String, MailAddress, Attachment) Asynchronously sends a mail with a plain text body.
SendMessageTextAsync(String, String, MailAddressCollection, ICollectionAttachment) Asynchronously sends a mail with a plain text body.
SendMessageTextAsync(String, String, MailAddressCollection, Attachment) Asynchronously sends a mail with a plain text body.
SendMessageTextAsync(String, String, String, ICollectionAttachment) Asynchronously sends a mail with a plain text body.
SendMessageTextAsync(String, String, String, Attachment) Asynchronously sends a mail with a plain text body.
SendMessageTextAsync(String, String, String, ICollectionAttachment) Asynchronously sends a mail with a plain text body.
SendMessageTextAsync(String, String, String, Attachment) Asynchronously sends a mail with a plain text body.
ToString Returns a string that represents the current object.
(Inherited from Object)

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