FindItems method (FolderId, String, Boolean, ViewBase, Grouping)

ExchangeService.FindItems method (FolderId, String, Boolean, ViewBase, Grouping)

Returns grouped items from a target folder according to the associated search query, optionally with terms highlighted.

The FindItems(FolderId, String, Boolean, ViewBase, Grouping) method is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

Namespace:  Microsoft.Exchange.WebServices.Data
Assembly:  Microsoft.Exchange.WebServices (in Microsoft.Exchange.WebServices.dll)

public GroupedFindItemsResults<Item> FindItems(
	FolderId parentFolderId,
	string queryString,
	bool returnHighlightTerms,
	ViewBase view,
	Grouping groupBy


Type: Microsoft.Exchange.WebServices.Data.FolderId

The ID of the folder in which to search for items.

Type: System.String

The query used to specify the search.

Type: System.Boolean

A flag indicating whether highlighted terms should be returned in the response.

Type: Microsoft.Exchange.WebServices.Data.ViewBase

The view controlling the number of items returned.

Type: Microsoft.Exchange.WebServices.Data.Grouping

Specifies the grouping for items returned by the search query.

Return value

Type: Microsoft.Exchange.WebServices.Data.GroupedFindItemsResults<Item>
A collection of items.

Calling this method results in a call to Exchange Web Services (EWS).

© 2016 Microsoft