IAsyncEwsClient.ListMessagesAsync
Contents
[
Hide
]ListMessagesAsync(string, string, int, MailQuery, bool, IEnumerable<PropertyDescriptor>, CancellationToken)
List the messages in the specified folder.
public Task<ExchangeMessageInfoCollection> ListMessagesAsync(string folder, string mailbox = null,
int maxNumberOfMessages = 0, MailQuery query = null, bool recursive = false,
IEnumerable<PropertyDescriptor> extendedProperties = null,
CancellationToken cancellationToken = default)
Parameter | Type | Description |
---|---|---|
folder | String | A folder to search messages in. |
mailbox | String | The mailbox that is used to initialize the folder id class. |
maxNumberOfMessages | Int32 | Maximum number of messages. |
query | MailQuery | MailQuery that represents message search criteria. |
recursive | Boolean | Indicates whether recursive listing or not. |
extendedProperties | IEnumerable`1 | Extended properties of retrieved messages |
cancellationToken | CancellationToken | The cancellation token. |
Return Value
ExchangeMessageInfoCollection
that contains messages from the specified folder.
See Also
- class ExchangeMessageInfoCollection
- class MailQuery
- class PropertyDescriptor
- interface IAsyncEwsClient
- namespace Aspose.Email.Clients.Exchange.WebService
- assembly Aspose.Email
ListMessagesAsync(IEnumerable<string>, CancellationToken)
List the messages in the specified folder.
public Task<ExchangeMessageInfoCollection> ListMessagesAsync(IEnumerable<string> ids,
CancellationToken cancellationToken = default)
Parameter | Type | Description |
---|---|---|
ids | IEnumerable`1 | Enumeration of message ids |
cancellationToken | CancellationToken | The cancellation token. |
Return Value
ExchangeMessageInfoCollection
that contains messages with.
See Also
- class ExchangeMessageInfoCollection
- interface IAsyncEwsClient
- namespace Aspose.Email.Clients.Exchange.WebService
- assembly Aspose.Email