OutlookMailClient Class

A client for Outlook.com mail service.

This class uses the experimental Microsoft's ADAL build.

Definition

Namespace: DevCase.ThirdParty.MicrosoftLive
Assembly: DevCase.net48.ThirdParty.MicrosoftLive (in DevCase.net48.ThirdParty.MicrosoftLive.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public sealed class OutlookMailClient
Inheritance
Object    OutlookMailClient

Remarks

Note: Some functionalities of this assembly may require to install one or all of the listed NuGet packages:

Microsoft.Identity.Client

Microsoft.Experimental.IdentityModel.Clients.ActiveDirectory

Microsoft.Office365.OutlookServices-V2.0

Microsoft.OData.Client

Example

This example demonstrates how to iterate the messages contained in a custom mailbox folder named "Youtube", then parse those messages received from Youtube, extract the video urls, write the urls to a local text file, and finally recycle the parsed message.
C#
No code example is currently available or this language may not be supported.

Constructors

OutlookMailClient Initializes a new instance of the OutlookMailClient class.

Properties

Client Gets the wrapped Outlook services client.
ClientId Gets the unique identifier of the registered application to use Outlook.com Mail API.
IsAuthorized Gets a value that determines whether Outlook.com API authorization was done.
Scopes Gets the current Outlook.com mail OAuthv2 scopes.

Methods

AuthorizeAsync Authorizes this instance to use Microsoft Outlook Mail services.
DeleteMessageAsync Asynchronously permanentlly deletes the specified message.
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.
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetMessagesAsync  
GetType Gets the Type of the current instance.
(Inherited from Object)
MoveMessageAsync Asynchronously moves the specified message to the target folder.
RecycleMessageAsync Asynchronously sends the specified message to the DeletedItems folder.
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