IAsyncEwsClient.FetchMessagesAsync

IAsyncEwsClient.FetchMessagesAsync method

Fetches the specified messages.

public Task<MailMessageCollection> FetchMessagesAsync(IEnumerable<string> uris, 
    IEnumerable<PropertyDescriptor> extendedProperties = null, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
urisIEnumerable`1A IEnumerable containing message uris to be retrieved
extendedPropertiesIEnumerable`1An enumeration of extended properties
cancellationTokenCancellationTokenThe cancellation token.

Return Value

A MailMessageCollection containing fetched messages

Exceptions

exceptioncondition
AsposeArgumentNullExceptionuris is null

See Also