OutlookMailConnector.GetMessagesAsync Method

Definition

Get the user's email messages.

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.SemanticKernel.Plugins.MsGraph.Models.EmailMessage>> GetMessagesAsync(int? top, int? skip, string? select, System.Threading.CancellationToken cancellationToken = default);
abstract member GetMessagesAsync : Nullable<int> * Nullable<int> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.SemanticKernel.Plugins.MsGraph.Models.EmailMessage>>
override this.GetMessagesAsync : Nullable<int> * Nullable<int> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.SemanticKernel.Plugins.MsGraph.Models.EmailMessage>>
Public Function GetMessagesAsync (top As Nullable(Of Integer), skip As Nullable(Of Integer), select As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of EmailMessage))

Parameters

top
Nullable<Int32>

How many messages to get.

skip
Nullable<Int32>

How many messages to skip.

select
String

Optionally select which message properties to get.

cancellationToken
CancellationToken

Cancellation token

Returns

The user's email messages.

Implements

Applies to