IAsyncEwsClient.ListMessagesByPageAsync

ListMessagesByPageAsync(string, int, int, MailQuery, CancellationToken)

List the messages in the specified folder.

public Task<ExchangeMessagePageInfo> ListMessagesByPageAsync(string folder, int itemsPerPage, 
    int offset = 0, MailQuery query = null, CancellationToken cancellationToken = default)
ParameterTypeDescription
folderStringA folder to search messages in.
itemsPerPageInt32A number of items in page
offsetInt32An offset of next page in view
queryMailQueryMailQuery that represents search criteria.
cancellationTokenCancellationTokenThe cancellation token.

Return Value

ExchangeMessageInfoCollection that contains messages from the specified folder.

See Also


ListMessagesByPageAsync(string, PageInfo, CancellationToken)

List the messages in the specified folder.

public Task<ExchangeMessagePageInfo> ListMessagesByPageAsync(string folder, PageInfo pageInfo, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
folderStringA folder to search messages in.
pageInfoPageInfoA page info
cancellationTokenCancellationTokenThe cancellation token.

Return Value

ExchangeMessageInfoCollection that contains messages from the specified folder.

See Also