ExchangeService.SearchMailboxes ExchangeService.SearchMailboxes ExchangeService.SearchMailboxes Method

Definition

Overloads

SearchMailboxes(SearchMailboxesParameters) SearchMailboxes(SearchMailboxesParameters) SearchMailboxes(SearchMailboxesParameters)

Searches mailboxes for items that match a query string using the associated SearchMailboxesParameters object to specify details of the search request. The SearchMailboxes(SearchMailboxesParameters) method is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

SearchMailboxes(IEnumerable<MailboxQuery>, SearchResultType) SearchMailboxes(IEnumerable<MailboxQuery>, SearchResultType) SearchMailboxes(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.

SearchMailboxes(IEnumerable<MailboxQuery>, SearchResultType, String, SortDirection, Int32, SearchPageDirection, String) SearchMailboxes(IEnumerable<MailboxQuery>, SearchResultType, String, SortDirection, Int32, SearchPageDirection, String) SearchMailboxes(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.

SearchMailboxes(SearchMailboxesParameters) SearchMailboxes(SearchMailboxesParameters) SearchMailboxes(SearchMailboxesParameters)

Searches mailboxes for items that match a query string using the associated SearchMailboxesParameters object to specify details of the search request. The SearchMailboxes(SearchMailboxesParameters) method is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

public:
 Microsoft::Exchange::WebServices::Data::ServiceResponseCollection<Microsoft::Exchange::WebServices::Data::SearchMailboxesResponse ^> ^ SearchMailboxes(Microsoft::Exchange::WebServices::Data::SearchMailboxesParameters ^ searchParameters);
public Microsoft.Exchange.WebServices.Data.ServiceResponseCollection<Microsoft.Exchange.WebServices.Data.SearchMailboxesResponse> SearchMailboxes (Microsoft.Exchange.WebServices.Data.SearchMailboxesParameters searchParameters);
Public Function SearchMailboxes (searchParameters As SearchMailboxesParameters) As ServiceResponseCollection(Of SearchMailboxesResponse)
Parameters
Returns

A set of items that match a search query.

SearchMailboxes(IEnumerable<MailboxQuery>, SearchResultType) SearchMailboxes(IEnumerable<MailboxQuery>, SearchResultType) SearchMailboxes(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.

public:
 Microsoft::Exchange::WebServices::Data::ServiceResponseCollection<Microsoft::Exchange::WebServices::Data::SearchMailboxesResponse ^> ^ SearchMailboxes(System::Collections::Generic::IEnumerable<Microsoft::Exchange::WebServices::Data::MailboxQuery ^> ^ mailboxQueries, Microsoft::Exchange::WebServices::Data::SearchResultType resultType);
public Microsoft.Exchange.WebServices.Data.ServiceResponseCollection<Microsoft.Exchange.WebServices.Data.SearchMailboxesResponse> SearchMailboxes (System.Collections.Generic.IEnumerable<Microsoft.Exchange.WebServices.Data.MailboxQuery> mailboxQueries, Microsoft.Exchange.WebServices.Data.SearchResultType resultType);
Public Function SearchMailboxes (mailboxQueries As IEnumerable(Of MailboxQuery), resultType As SearchResultType) As ServiceResponseCollection(Of SearchMailboxesResponse)
Parameters
mailboxQueries
IEnumerable<MailboxQuery>

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

resultType
SearchResultType SearchResultType SearchResultType

The search result is either statistical or an item preview.

Returns

A collection of statistics or an item preview resulting from a search query.

SearchMailboxes(IEnumerable<MailboxQuery>, SearchResultType, String, SortDirection, Int32, SearchPageDirection, String) SearchMailboxes(IEnumerable<MailboxQuery>, SearchResultType, String, SortDirection, Int32, SearchPageDirection, String) SearchMailboxes(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.

public:
 Microsoft::Exchange::WebServices::Data::ServiceResponseCollection<Microsoft::Exchange::WebServices::Data::SearchMailboxesResponse ^> ^ SearchMailboxes(System::Collections::Generic::IEnumerable<Microsoft::Exchange::WebServices::Data::MailboxQuery ^> ^ mailboxQueries, Microsoft::Exchange::WebServices::Data::SearchResultType resultType, System::String ^ sortByProperty, Microsoft::Exchange::WebServices::Data::SortDirection sortOrder, int pageSize, Microsoft::Exchange::WebServices::Data::SearchPageDirection pageDirection, System::String ^ pageItemReference);
public Microsoft.Exchange.WebServices.Data.ServiceResponseCollection<Microsoft.Exchange.WebServices.Data.SearchMailboxesResponse> SearchMailboxes (System.Collections.Generic.IEnumerable<Microsoft.Exchange.WebServices.Data.MailboxQuery> mailboxQueries, Microsoft.Exchange.WebServices.Data.SearchResultType resultType, string sortByProperty, Microsoft.Exchange.WebServices.Data.SortDirection sortOrder, int pageSize, Microsoft.Exchange.WebServices.Data.SearchPageDirection pageDirection, string pageItemReference);
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)
Parameters
mailboxQueries
IEnumerable<MailboxQuery>

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

resultType
SearchResultType SearchResultType SearchResultType

The search result is either statistical or an item preview.

sortByProperty
String String String

The search result is sorted by property name.

sortOrder
SortDirection SortDirection SortDirection

The sort order.

pageSize
Int32 Int32 Int32

The preview page size.

pageDirection
SearchPageDirection SearchPageDirection SearchPageDirection

The preview page direction, either previous or next.

pageItemReference
String String String

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

Returns

An item preview of items returned in the search.

Applies to