IGraphClientAsync.ListMessagesAsync
Contents
[
Hide
]ListMessagesAsync(string, ODataQueryBuilder, CancellationToken)
Asynchronously lists MessageInfo from the parent folder.
public Task<MessageInfoCollection> ListMessagesAsync(string id,
ODataQueryBuilder queryBuilder = null, CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| id | String | Parent folder id. |
| queryBuilder | ODataQueryBuilder | Optional OData query builder for filtering messages. |
| cancellationToken | CancellationToken | A cancellation token to observe while waiting for the task to complete. |
Return Value
A task that represents the asynchronous operation. The task result contains the list of MessageInfo of the folder.
See Also
- class MessageInfoCollection
- class ODataQueryBuilder
- interface IGraphClientAsync
- namespace Aspose.Email.Clients.Graph
- assembly Aspose.Email
ListMessagesAsync(string, PageInfo, MailQuery, CancellationToken)
Asynchronously lists MessageInfo from the parent folder with paging and query.
public Task<GraphMessagePageInfo> ListMessagesAsync(string id, PageInfo page, MailQuery query,
CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| id | String | Parent folder id. |
| page | PageInfo | A page info. |
| query | MailQuery | MailQuery that represents search query. |
| cancellationToken | CancellationToken | A cancellation token to observe while waiting for the task to complete. |
Return Value
A task that represents the asynchronous operation. The task result contains the list of MessageInfo of the folder.
See Also
- class GraphMessagePageInfo
- class PageInfo
- class MailQuery
- interface IGraphClientAsync
- namespace Aspose.Email.Clients.Graph
- assembly Aspose.Email