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

GraphClient.Search Method

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

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.

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