GraphClient.GetMessageListAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Graph.dll (version 7.0.9147)
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 |
---|---|---|
Graph |
folderId | ID of a folder to be listed. Can be null, in such case whole mailbox is listed. |
Graph |
fields | Specifies the set of properties to retrieve about each message. |
Graph |
pageView | Paging options. Can be null, in such case the top 50 results are returned. |
Returns
Type | Description |
---|---|
Task<Graph |
List of Graph |
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 |
---|---|---|
Graph |
folderId | ID of a folder to be listed. Can be null, in such case whole mailbox is listed. |
Graph |
pageView | Paging options. Can be null, in such case the top 50 results are returned. |
Returns
Type | Description |
---|---|
Task<Graph |
List of Graph |