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

Ews.SearchAsync Method

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

SearchAsync(EwsFolderId, EwsSearchParameter[], Object)

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

Declaration
public Task<EwsMessageCollection> SearchAsync(EwsFolderId folderId, EwsSearchParameter[] condition, object state = null)
Parameters
Type Name Description
EwsFolderId folderId

ID of a folder to search in.

EwsSearchParameter[] condition

Searching criteria.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task<EwsMessageCollection>

List of found messages.

Remarks

Searching criteria consist of one or more parameters. When multiple parameters are specified, the results is the intersection (AND) of all the messages that match.

SearchAsync(EwsFolderId, EwsPageView, EwsSearchParameter[], Object)

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

Declaration
public Task<EwsMessageCollection> SearchAsync(EwsFolderId folderId, EwsPageView pageView, EwsSearchParameter[] condition, object state = null)
Parameters
Type Name Description
EwsFolderId folderId

ID of a folder to search in.

EwsPageView pageView

Paging definition. Can be null (Nothing in VB.NET).

EwsSearchParameter[] condition

Searching criteria.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task<EwsMessageCollection>

List of found messages.

Remarks

Searching criteria consist of one or more parameters. When multiple parameters are specified, the results is the intersection (AND) of all the messages that match.

SearchAsync(EwsFolderId, EwsItemFields, EwsSearchParameter[], Object)

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

Declaration
public Task<EwsMessageCollection> SearchAsync(EwsFolderId folderId, EwsItemFields fields, EwsSearchParameter[] condition, object state = null)
Parameters
Type Name Description
EwsFolderId folderId

ID of a folder to search in.

EwsItemFields fields

Set of item properties to be retrieved.

EwsSearchParameter[] condition

Searching criteria.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task<EwsMessageCollection>

List of found messages.

Remarks

Searching criteria consist of one or more parameters. When multiple parameters are specified, the results is the intersection (AND) of all the messages that match.

SearchAsync(EwsFolderId, EwsItemFields, EwsPageView, EwsSearchParameter[], Object)

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

Declaration
public Task<EwsMessageCollection> SearchAsync(EwsFolderId folderId, EwsItemFields fields, EwsPageView pageView, EwsSearchParameter[] condition, object state = null)
Parameters
Type Name Description
EwsFolderId folderId

ID of a folder to search in.

EwsItemFields fields

Set of item properties to be retrieved.

EwsPageView pageView

Paging definition. Can be null (Nothing in VB.NET).

EwsSearchParameter[] condition

Searching criteria.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task<EwsMessageCollection>

List of found messages.

Remarks

Searching criteria consist of one or more parameters. When multiple parameters are specified, the results is the intersection (AND) of all the messages that match.

SearchAsync(EwsFolderId, EwsItemFields, EwsListView, EwsSearchParameter[], Object)

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

Declaration
public Task<EwsMessageCollection> SearchAsync(EwsFolderId folderId, EwsItemFields fields, EwsListView listView, EwsSearchParameter[] condition, object state = null)
Parameters
Type Name Description
EwsFolderId folderId

ID of a folder to search in.

EwsItemFields fields

Set of item properties to be retrieved.

EwsListView listView

List view options. Can be null (Nothing in VB.NET).

EwsSearchParameter[] condition

Searching criteria.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task<EwsMessageCollection>

List of found messages.

Remarks

Searching criteria consist of one or more parameters. When multiple parameters are specified, the results is the intersection (AND) of all the messages that match.

SearchAsync(EwsFolderId, EwsItemFields, EwsListView, String, Object)

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

Declaration
public Task<EwsMessageCollection> SearchAsync(EwsFolderId folderId, EwsItemFields fields, EwsListView listView, string queryString, object state = null)
Parameters
Type Name Description
EwsFolderId folderId

ID of a folder to search in.

EwsItemFields fields

Set of item properties to be retrieved.

EwsListView listView

List view options. Can be null (Nothing in VB.NET).

String queryString

Searching criteria string in AQS syntax.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task<EwsMessageCollection>

List of found messages.

In This Article
  • SearchAsync(EwsFolderId, EwsSearchParameter[], Object)
  • SearchAsync(EwsFolderId, EwsPageView, EwsSearchParameter[], Object)
  • SearchAsync(EwsFolderId, EwsItemFields, EwsSearchParameter[], Object)
  • SearchAsync(EwsFolderId, EwsItemFields, EwsPageView, EwsSearchParameter[], Object)
  • SearchAsync(EwsFolderId, EwsItemFields, EwsListView, EwsSearchParameter[], Object)
  • SearchAsync(EwsFolderId, EwsItemFields, EwsListView, String, Object)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies