GraphClient.GetMessageListAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Graph.dll (version 7.0.9448)
GetMessageListAsync(GraphFolderId, GraphMessageFields, GraphPageView)
Begins asynchronous GetMessageList operation. Gets a list of messages in the specified folder.
Declaration
public Task<GraphMessageCollection> GetMessageListAsync(GraphFolderId folderId, GraphMessageFields fields = GraphMessageFields.Default, GraphPageView pageView = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphFolderId | folderId | ID of a folder to be listed. Can be null, in such case whole mailbox is listed. |
| GraphMessageFields | fields | Specifies the set of properties to retrieve about each message. |
| GraphPageView | pageView | Paging options. Can be null, in such case the top 50 results are returned. |
Returns
| Type | Description |
|---|---|
| Task<GraphMessageCollection> | List of GraphMessageInfo. |
GetMessageListAsync(GraphFolderId, GraphPageView)
Begins asynchronous GetMessageList operation. Gets a list of messages in the specified folder.
Declaration
public Task<GraphMessageCollection> GetMessageListAsync(GraphFolderId folderId, GraphPageView pageView)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphFolderId | folderId | ID of a folder to be listed. Can be null, in such case whole mailbox is listed. |
| GraphPageView | pageView | Paging options. Can be null, in such case the top 50 results are returned. |
Returns
| Type | Description |
|---|---|
| Task<GraphMessageCollection> | List of GraphMessageInfo. |