ExchangeService.SetHoldOnMailboxes method (String, HoldAction, String, String[])

Sets a query-based hold on items on a collection of mailboxes for the purpose of eDiscovery.

The SetHoldOnMailboxes(String, HoldAction, 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 SetHoldOnMailboxes ( _
	holdId As String, _
	actionType As HoldAction, _
	query As String, _
	mailboxes As String() _
) As SetHoldOnMailboxesResponse
Dim instance As ExchangeService
Dim holdId As String
Dim actionType As HoldAction
Dim query As String
Dim mailboxes As String()
Dim returnValue As SetHoldOnMailboxesResponse

returnValue = instance.SetHoldOnMailboxes(holdId, _
	actionType, query, mailboxes)


Type: System.String

The hold ID for an eDiscovery hold action.

Type: Microsoft.Exchange.WebServices.Data.HoldAction

The type of hold action.

Type: System.String

The query used to specify an eDiscovery hold.

Type: []

The collection of mailboxes.

Return value

Type: Microsoft.Exchange.WebServices.Data.SetHoldOnMailboxesResponse
The results of a query-based hold.