Edit

Share via


ExchangeService.SetHoldOnMailboxes Method

Definition

Overloads

SetHoldOnMailboxes(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.

SetHoldOnMailboxes(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, String[]) method is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

SetHoldOnMailboxes(SetHoldOnMailboxesParameters)

Sets a query-based hold on items in one or more mailboxes for the purpose of eDiscovery.The SetHoldOnMailboxes(SetHoldOnMailboxesParameters) method is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

SetHoldOnMailboxes(String, HoldAction, String, String)

Sets a query-based hold on items in a mailbox for the purpose of eDiscovery. The SetHoldOnMailboxes(String, HoldAction, String, String) method is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

SetHoldOnMailboxes(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.

public:
 Microsoft::Exchange::WebServices::Data::SetHoldOnMailboxesResponse ^ SetHoldOnMailboxes(System::String ^ holdId, Microsoft::Exchange::WebServices::Data::HoldAction actionType, System::String ^ query, System::String ^ inPlaceHoldIdentity, System::String ^ itemHoldPeriod);
public Microsoft.Exchange.WebServices.Data.SetHoldOnMailboxesResponse SetHoldOnMailboxes (string holdId, Microsoft.Exchange.WebServices.Data.HoldAction actionType, string query, string inPlaceHoldIdentity, string itemHoldPeriod);
Public Function SetHoldOnMailboxes (holdId As String, actionType As HoldAction, query As String, inPlaceHoldIdentity As String, itemHoldPeriod As String) As SetHoldOnMailboxesResponse

Parameters

holdId
String

The hold ID for an eDiscovery hold action.

actionType
HoldAction

The type of hold action.

query
String

The query used to specify an eDiscovery hold.

inPlaceHoldIdentity
String

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

itemHoldPeriod
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 System.TimeSpan.ToString() method.

Returns

The result of a query-based hold.

Applies to

SetHoldOnMailboxes(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, String[]) method is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

public:
 Microsoft::Exchange::WebServices::Data::SetHoldOnMailboxesResponse ^ SetHoldOnMailboxes(System::String ^ holdId, Microsoft::Exchange::WebServices::Data::HoldAction actionType, System::String ^ query, cli::array <System::String ^> ^ mailboxes);
public Microsoft.Exchange.WebServices.Data.SetHoldOnMailboxesResponse SetHoldOnMailboxes (string holdId, Microsoft.Exchange.WebServices.Data.HoldAction actionType, string query, string[] mailboxes);
Public Function SetHoldOnMailboxes (holdId As String, actionType As HoldAction, query As String, mailboxes As String()) As SetHoldOnMailboxesResponse

Parameters

holdId
String

The hold ID for an eDiscovery hold action.

actionType
HoldAction

The type of hold action.

query
String

The query used to specify an eDiscovery hold.

mailboxes
String[]

The collection of mailboxes.

Returns

The results of a query-based hold.

Applies to

SetHoldOnMailboxes(SetHoldOnMailboxesParameters)

Sets a query-based hold on items in one or more mailboxes for the purpose of eDiscovery.The SetHoldOnMailboxes(SetHoldOnMailboxesParameters) method is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

public:
 Microsoft::Exchange::WebServices::Data::SetHoldOnMailboxesResponse ^ SetHoldOnMailboxes(Microsoft::Exchange::WebServices::Data::SetHoldOnMailboxesParameters ^ parameters);
public Microsoft.Exchange.WebServices.Data.SetHoldOnMailboxesResponse SetHoldOnMailboxes (Microsoft.Exchange.WebServices.Data.SetHoldOnMailboxesParameters parameters);
Public Function SetHoldOnMailboxes (parameters As SetHoldOnMailboxesParameters) As SetHoldOnMailboxesResponse

Parameters

parameters
SetHoldOnMailboxesParameters

A set of parameters for the hold.

Returns

The result of a query-based hold.

Applies to

SetHoldOnMailboxes(String, HoldAction, String, String)

Sets a query-based hold on items in a mailbox for the purpose of eDiscovery. The SetHoldOnMailboxes(String, HoldAction, String, String) method is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

public:
 Microsoft::Exchange::WebServices::Data::SetHoldOnMailboxesResponse ^ SetHoldOnMailboxes(System::String ^ holdId, Microsoft::Exchange::WebServices::Data::HoldAction actionType, System::String ^ query, System::String ^ inPlaceHoldIdentity);
public Microsoft.Exchange.WebServices.Data.SetHoldOnMailboxesResponse SetHoldOnMailboxes (string holdId, Microsoft.Exchange.WebServices.Data.HoldAction actionType, string query, string inPlaceHoldIdentity);
Public Function SetHoldOnMailboxes (holdId As String, actionType As HoldAction, query As String, inPlaceHoldIdentity As String) As SetHoldOnMailboxesResponse

Parameters

holdId
String

The hold ID for an eDiscovery hold action.

actionType
HoldAction

The type of hold action.

query
String

The query used to specify an eDiscovery hold.

inPlaceHoldIdentity
String

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

Returns

The result of a query-based hold.

Applies to