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

Sets a query-based hold on items in a mailbox for a specific duration for the purpose of eDiscovery.

The SetHoldOnMailboxes(String, HoldAction, String, String, 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 SetHoldOnMailboxesResponse SetHoldOnMailboxes(
	string holdId,
	HoldAction actionType,
	string query,
	string inPlaceHoldIdentity,
	string itemHoldPeriod
)

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.

inPlaceHoldIdentity
Type: System.String

An identifier that references an in-place hold (preserves all mailbox content).

itemHoldPeriod
Type: System.String

A string that indicates the duration for the hold. The string can be "Unlimited" for a permanent hold, or a string in the format generated by the [M:System.TimeSpan.ToString()] method.

Return value

Type: Microsoft.Exchange.WebServices.Data.SetHoldOnMailboxesResponse
The result of a query-based hold.
Show:
© 2015 Microsoft