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

GraphClient.SearchAsync Method

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

SearchAsync(GraphFolderId, GraphMessageSearchParameter[])

Searches a folder for messages that match the specified searching criteria.

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

List of GraphMessageInfo.

Remarks

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

Examples

See Search code example on product pages.

SearchAsync(GraphFolderId, GraphMessageFields, GraphMessageSearchParameter[])

Searches a folder for messages that match the specified searching criteria.

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

List of GraphMessageInfo.

Remarks

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

Examples

See Search code example on product pages.

SearchAsync(GraphFolderId, GraphPageView, GraphMessageSearchParameter[])

Searches a folder for messages that match the specified searching criteria.

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

List of GraphMessageInfo.

Remarks

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

Examples

See Search code example on product pages.

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

Searches a folder for messages that match the specified searching criteria.

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

List of GraphMessageInfo.

Remarks

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

Examples

See Search code example on product pages.

SearchAsync(GraphFolderId, GraphMessageSearchQuery)

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.

Examples

See Search code example on product pages.

In This Article
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies