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)

'Declaration
Public Function SearchMailboxes ( _
	mailboxQueries As IEnumerable(Of MailboxQuery), _
	resultType As SearchResultType _
) As ServiceResponseCollection(Of SearchMailboxesResponse)
'Usage
Dim instance As ExchangeService
Dim mailboxQueries As IEnumerable(Of MailboxQuery)
Dim resultType As SearchResultType
Dim returnValue As ServiceResponseCollection(Of SearchMailboxesResponse)

returnValue = instance.SearchMailboxes(mailboxQueries, _
	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:
© 2014 Microsoft