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 Function ArchiveItems ( _
	itemIds As IEnumerable(Of ItemId), _
	sourceFolderId As FolderId _
) As ServiceResponseCollection(Of ArchiveItemResponse)
Dim instance As ExchangeService
Dim itemIds As IEnumerable(Of ItemId)
Dim sourceFolderId As FolderId
Dim returnValue As ServiceResponseCollection(Of ArchiveItemResponse)

returnValue = instance.ArchiveItems(itemIds, _


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

The IDs of the items to move.

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).