ExchangeService.SetHoldOnMailboxes method (String, HoldAction, String, String[])
EWS Managed API
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.
Assembly: Microsoft.Exchange.WebServices (in Microsoft.Exchange.WebServices.dll)
public SetHoldOnMailboxesResponse SetHoldOnMailboxes( string holdId, HoldAction actionType, string query, string[] mailboxes )
Parameters
- holdId
- Type: System.String
The hold ID for an eDiscovery hold action.
- actionType
- Type: Microsoft.Exchange.WebServices.Data.HoldAction
The type of hold action.
- query
- Type: System.String
The query used to specify an eDiscovery hold.
- mailboxes
- Type: []
The collection of mailboxes.
Return value
Type: Microsoft.Exchange.WebServices.Data.SetHoldOnMailboxesResponseThe results of a query-based hold.