ExchangeService.SearchMailboxes method (IEnumerable<MailboxQuery>, SearchResultType)

Searches mailboxes for items that match a set of query strings. The search result can be either statistical or an item preview.

The SearchMailboxes(IEnumerable<MailboxQuery>, SearchResultType) 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 ServiceResponseCollection<SearchMailboxesResponse> SearchMailboxes(
	IEnumerable<MailboxQuery> mailboxQueries,
	SearchResultType resultType
)

Parameters

mailboxQueries
Type: System.Collections.Generic.IEnumerable<MailboxQuery>

A collection of queries and a collection of mailbox search scopes.

resultType
Type: Microsoft.Exchange.WebServices.Data.SearchResultType

The search result is either statistical or an item preview.

Return value

Type: Microsoft.Exchange.WebServices.Data.ServiceResponseCollection<SearchMailboxesResponse>
A collection of statistics or an item preview resulting from a search query.
Show: