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

Namespace:  Rebex.Net
Assembly:  Rebex.Ews (in Rebex.Ews.dll)

Syntax

Visual Basic
Public Function Search ( _
	folderId As EwsFolderId, _
	pageView As EwsPageView, _
	ParamArray condition As EwsSearchParameter() _
) As EwsMessageCollection
C#
public EwsMessageCollection Search(
	EwsFolderId folderId,
	EwsPageView pageView,
	params EwsSearchParameter[] condition
)

Parameters

folderId
Type: Rebex.Net..::..EwsFolderId
ID of a folder to search in.
pageView
Type: Rebex.Net..::..EwsPageView
Paging definition. Can be null (Nothing in VB.NET).
condition
Type: array<Rebex.Net..::..EwsSearchParameter>[]()[][]
Searching criteria.

Return Value

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.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also