Export (0) Print
Expand All
7 out of 10 rated this helpful - Rate this topic

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

EWS Managed API

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 ServiceResponseCollection<SearchMailboxesResponse> SearchMailboxes(
	IEnumerable<MailboxQuery> mailboxQueries,
	SearchResultType resultType,
	string sortByProperty,
	SortDirection sortOrder,
	int pageSize,
	SearchPageDirection pageDirection,
	string 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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.