ExchangeService.FindItems method (FolderId, SearchFilter, ViewBase, Grouping)

Obtains a grouped list of items by searching the contents of a specific folder.

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

public GroupedFindItemsResults<Item> FindItems(
	FolderId parentFolderId,
	SearchFilter searchFilter,
	ViewBase view,
	Grouping groupBy
)

Parameters

parentFolderId
Type: Microsoft.Exchange.WebServices.Data.FolderId

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

searchFilter
Type: Microsoft.Exchange.WebServices.Data.SearchFilter

The filter used to narrow search results.

view
Type: Microsoft.Exchange.WebServices.Data.ViewBase

A value that determines the number of items per preview page.

groupBy
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).

Show: