IAsyncEwsClient.FetchMessagesAsync
IAsyncEwsClient.FetchMessagesAsync method
Fetches the specified messages.
public Task<MailMessageCollection> FetchMessagesAsync(IEnumerable<string> uris,
IEnumerable<PropertyDescriptor> extendedProperties = null,
CancellationToken cancellationToken = default)
Parameter | Type | Description |
---|---|---|
uris | IEnumerable`1 | A IEnumerable containing message uris to be retrieved |
extendedProperties | IEnumerable`1 | An enumeration of extended properties |
cancellationToken | CancellationToken | The cancellation token. |
Return Value
A MailMessageCollection
containing fetched messages
Exceptions
exception | condition |
---|---|
AsposeArgumentNullException | uris is null |
See Also
- class MailMessageCollection
- class PropertyDescriptor
- interface IAsyncEwsClient
- namespace Aspose.Email.Clients.Exchange.WebService
- assembly Aspose.Email