Expand Minimize

ExchangeService.ArchiveItems method

Archives multiple items in a target folder.

The ArchiveItems(IEnumerable<ItemId>, FolderId) 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 ServiceResponseCollection<ArchiveItemResponse> ArchiveItems(
	IEnumerable<ItemId> itemIds,
	FolderId sourceFolderId
)

Parameters

itemIds
Type: System.Collections.Generic.IEnumerable<ItemId>

The IDs of the items to move.

sourceFolderId
Type: Microsoft.Exchange.WebServices.Data.FolderId

The ID of the primary folder from which items will be archived.

Calling this method results in a call to Exchange Web Services (EWS).

Show:
© 2014 Microsoft