ExchangeService.GetSearchableMailboxes method

Gets two lists of mailboxes: a list of mailboxes that could be searched and a list of mailboxes that could not be searched for the purpose of eDiscovery.

The GetSearchableMailboxes(String, Boolean) 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 GetSearchableMailboxes ( _
	searchFilter As String, _
	expandGroupMembership As Boolean _
) As GetSearchableMailboxesResponse
Dim instance As ExchangeService
Dim searchFilter As String
Dim expandGroupMembership As Boolean
Dim returnValue As GetSearchableMailboxesResponse

returnValue = instance.GetSearchableMailboxes(searchFilter, _


Type: System.String

A value used to refine a search such as an email address or a display name.

Type: System.Boolean

true to expand group membership; otherwise, false.

Return value

Type: Microsoft.Exchange.WebServices.Data.GetSearchableMailboxesResponse
A collection of mailboxes that could be searched and a collection of mailboxes that could not be searched.