GraphClient.GetMessageList Method
Namespace: Rebex.Net
Assembly: Rebex.Graph.dll (version 7.0.9313)
GetMessageList(GraphFolderId, GraphMessageFields, GraphPageView)
Gets a list of messages in the specified folder.
Declaration
public GraphMessageCollection GetMessageList(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 |
|---|---|
| GraphMessageCollection | List of GraphMessageInfo. |
GetMessageList(GraphFolderId, GraphPageView)
Gets a list of messages in the specified folder.
Declaration
public GraphMessageCollection GetMessageList(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 |
|---|---|
| GraphMessageCollection | List of GraphMessageInfo. |