GraphClient.Search Method
Namespace: Rebex.Net
Assembly: Rebex.Graph.dll (version 7.0.9119)
Search(GraphFolderId, GraphMessageSearchParameter[])
Searches a folder for messages that match the specified searching criteria.
Declaration
public GraphMessageCollection Search(GraphFolderId folderId, params GraphMessageSearchParameter[] conditions)
Parameters
Type | Name | Description |
---|---|---|
GraphFolderId | folderId | ID of a folder to be searched. Can be null, in such case whole mailbox is searched. |
GraphMessageSearchParameter[] | conditions | Searching criteria. |
Returns
Type | Description |
---|---|
GraphMessageCollection | List of GraphMessageInfo. |
Remarks
When multiple searching criteria are specified, the result is the intersection (AND) of all the messages that match.
Search(GraphFolderId, GraphMessageFields, GraphMessageSearchParameter[])
Searches a folder for messages that match the specified searching criteria.
Declaration
public GraphMessageCollection Search(GraphFolderId folderId, GraphMessageFields fields, params GraphMessageSearchParameter[] conditions)
Parameters
Type | Name | Description |
---|---|---|
GraphFolderId | folderId | ID of a folder to be searched. Can be null, in such case whole mailbox is searched. |
GraphMessageFields | fields | Set of item properties to be retrieved. |
GraphMessageSearchParameter[] | conditions | Searching criteria. |
Returns
Type | Description |
---|---|
GraphMessageCollection | List of GraphMessageInfo. |
Remarks
When multiple searching criteria are specified, the result is the intersection (AND) of all the messages that match.
Search(GraphFolderId, GraphPageView, GraphMessageSearchParameter[])
Searches a folder for messages that match the specified searching criteria.
Declaration
public GraphMessageCollection Search(GraphFolderId folderId, GraphPageView pageView, params GraphMessageSearchParameter[] conditions)
Parameters
Type | Name | Description |
---|---|---|
GraphFolderId | folderId | ID of a folder to be searched. Can be null, in such case whole mailbox is searched. |
GraphPageView | pageView | Paging options. Can be null, in such case the top 50 results are returned. |
GraphMessageSearchParameter[] | conditions | Searching criteria. |
Returns
Type | Description |
---|---|
GraphMessageCollection | List of GraphMessageInfo. |
Remarks
When multiple searching criteria are specified, the result is the intersection (AND) of all the messages that match.
Search(GraphFolderId, GraphMessageFields, GraphPageView, GraphMessageSearchParameter[])
Searches a folder for messages that match the specified searching criteria.
Declaration
public GraphMessageCollection Search(GraphFolderId folderId, GraphMessageFields fields, GraphPageView pageView, params GraphMessageSearchParameter[] conditions)
Parameters
Type | Name | Description |
---|---|---|
GraphFolderId | folderId | ID of a folder to be searched. Can be null, in such case whole mailbox is searched. |
GraphMessageFields | fields | Set of item properties to be retrieved. |
GraphPageView | pageView | Paging options. Can be null, in such case the top 50 results are returned. |
GraphMessageSearchParameter[] | conditions | Searching criteria. |
Returns
Type | Description |
---|---|
GraphMessageCollection | List of GraphMessageInfo. |
Remarks
When multiple searching criteria are specified, the result is the intersection (AND) of all the messages that match.
Search(GraphFolderId, GraphMessageSearchQuery)
Searches a folder for messages that match the specified searching criteria.
Declaration
public GraphMessageCollection Search(GraphFolderId folderId, GraphMessageSearchQuery query)
Parameters
Type | Name | Description |
---|---|---|
GraphFolderId | folderId | ID of a folder to be searched. Can be null, in such case whole mailbox is searched. |
GraphMessageSearchQuery | query | Set of message properties to be retrieved. |
Returns
Type | Description |
---|---|
GraphMessageCollection | List of GraphMessageInfo. |