ExchangeService.SearchMailboxes method (IEnumerable<MailboxQuery>, SearchResultType, String, SortDirection, Int32, SearchPageDirection, String)

Searches mailboxes for items that match a set of query strings and returns a sorted, ordered result of preview items.

The SearchMailboxes(IEnumerable<MailboxQuery>, SearchResultType, String, SortDirection, Int32, SearchPageDirection, String) 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 Function SearchMailboxes ( _
	mailboxQueries As IEnumerable(Of MailboxQuery), _
	resultType As SearchResultType, _
	sortByProperty As String, _
	sortOrder As SortDirection, _
	pageSize As Integer, _
	pageDirection As SearchPageDirection, _
	pageItemReference As String _
) As ServiceResponseCollection(Of SearchMailboxesResponse)
Dim instance As ExchangeService
Dim mailboxQueries As IEnumerable(Of MailboxQuery)
Dim resultType As SearchResultType
Dim sortByProperty As String
Dim sortOrder As SortDirection
Dim pageSize As Integer
Dim pageDirection As SearchPageDirection
Dim pageItemReference As String
Dim returnValue As ServiceResponseCollection(Of SearchMailboxesResponse)

returnValue = instance.SearchMailboxes(mailboxQueries, _
	resultType, sortByProperty, sortOrder, _
	pageSize, pageDirection, pageItemReference)


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

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

Type: Microsoft.Exchange.WebServices.Data.SearchResultType

The search result is either statistical or an item preview.

Type: System.String

The search result is sorted by property name.

Type: Microsoft.Exchange.WebServices.Data.SortDirection

The sort order.

Type: System.Int32

The preview page size.

Type: Microsoft.Exchange.WebServices.Data.SearchPageDirection

The preview page direction, either previous or next.

Type: System.String

A reference that determines where an item is on a preview page.

Return value

Type: Microsoft.Exchange.WebServices.Data.ServiceResponseCollection<SearchMailboxesResponse>
An item preview of items returned in the search.