EwsSearch Method (FolderId, SearchFilter)
Searches the specified folder for items matching the given criteria.

Namespace: MailBee.EwsMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public EwsItemList Search(
	FolderId id,
	SearchFilter filter
)

Parameters

id
Type: FolderId
The ID of the folder where to perform search. Null reference (Nothing in Visual Basic) not allowed.
filter
Type: SearchFilter
The EWS Managed API filter. If a null reference, no filter is applied and all the items are returned.

Return Value

Type: EwsItemList
If succeeded, the list of items which passed the specified criteria; otherwise, a null reference.
Exceptions
ExceptionCondition
MailBeeExceptionAn error occurred and ThrowExceptions is true.
NotImplementedExceptionThe .NET runtime is .NET Core.
Remarks
EwsItem objects in the returned list have only Id and UniqueId properties set. To get the actual items, you'll need to download them separately, such as with DownloadItems(IEnumerableEwsItem, EwsItemParts) method.
Note Note
This method requires MS Exchange 2010 at least (and EWS client must be initialized with InitEwsClient(ExchangeVersion) not less than ExchangeVersion.Exchange2010).
Note Note
This method is not implemented in .NET Core. Use SearchAsync(FolderId, SearchFilter) instead.
See Also