Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

GraphClient.SearchAsync Method

Namespace: Rebex.Net
Assembly: Rebex.Graph.dll (version 7.0.9147)

SearchAsync(GraphFolderId, GraphMessageSearchParameter[])

Begins asynchronous Search operation. Searches a folder for messages that match the specified searching criteria.

Declaration
public Task<GraphMessageCollection> SearchAsync(GraphFolderId folderId, 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
Task<GraphMessageCollection>

List of GraphMessageInfo.

Remarks

When multiple searching criteria are specified, the result is the intersection (AND) of all the messages that match.

SearchAsync(GraphFolderId, GraphMessageFields, GraphMessageSearchParameter[])

Begins asynchronous Search operation. Searches a folder for messages that match the specified searching criteria.

Declaration
public Task<GraphMessageCollection> SearchAsync(GraphFolderId folderId, GraphMessageFields fields, 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
Task<GraphMessageCollection>

List of GraphMessageInfo.

Remarks

When multiple searching criteria are specified, the result is the intersection (AND) of all the messages that match.

SearchAsync(GraphFolderId, GraphPageView, GraphMessageSearchParameter[])

Begins asynchronous Search operation. Searches a folder for messages that match the specified searching criteria.

Declaration
public Task<GraphMessageCollection> SearchAsync(GraphFolderId folderId, GraphPageView pageView, 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
Task<GraphMessageCollection>

List of GraphMessageInfo.

Remarks

When multiple searching criteria are specified, the result is the intersection (AND) of all the messages that match.

SearchAsync(GraphFolderId, GraphMessageFields, GraphPageView, GraphMessageSearchParameter[])

Begins asynchronous Search operation. Searches a folder for messages that match the specified searching criteria.

Declaration
public Task<GraphMessageCollection> SearchAsync(GraphFolderId folderId, GraphMessageFields fields, GraphPageView pageView, 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
Task<GraphMessageCollection>

List of GraphMessageInfo.

Remarks

When multiple searching criteria are specified, the result is the intersection (AND) of all the messages that match.

SearchAsync(GraphFolderId, GraphMessageSearchQuery)

Begins asynchronous Search operation. Searches a folder for messages that match the specified searching criteria.

Declaration
public Task<GraphMessageCollection> SearchAsync(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
Task<GraphMessageCollection>

List of GraphMessageInfo.

In This Article
  • SearchAsync(GraphFolderId, GraphMessageSearchParameter[])
  • SearchAsync(GraphFolderId, GraphMessageFields, GraphMessageSearchParameter[])
  • SearchAsync(GraphFolderId, GraphPageView, GraphMessageSearchParameter[])
  • SearchAsync(GraphFolderId, GraphMessageFields, GraphPageView, GraphMessageSearchParameter[])
  • SearchAsync(GraphFolderId, GraphMessageSearchQuery)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies