ExchangeService.SearchMailboxes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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) |
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) |
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)
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
- searchParameters
- SearchMailboxesParameters
A set of search parameters.
Returns
A set of items that match a search query.
Applies to
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
The search result is either statistical or an item preview.
Returns
A collection of statistics or an item preview resulting from a search query.
Applies to
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
The search result is either statistical or an item preview.
- sortByProperty
- String
The search result is sorted by property name.
- sortOrder
- SortDirection
The sort order.
- pageSize
- Int32
The preview page size.
- pageDirection
- SearchPageDirection
The preview page direction, either previous or next.
- pageItemReference
- String
A reference that determines where an item is on a preview page.
Returns
An item preview of items returned in the search.