Export (0) Print
Expand All
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)

'Declaration
Public Function ArchiveItems ( _
	itemIds As IEnumerable(Of ItemId), _
	sourceFolderId As FolderId _
) As ServiceResponseCollection(Of ArchiveItemResponse)
'Usage
Dim instance As ExchangeService
Dim itemIds As IEnumerable(Of ItemId)
Dim sourceFolderId As FolderId
Dim returnValue As ServiceResponseCollection(Of ArchiveItemResponse)

returnValue = instance.ArchiveItems(itemIds, _
	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