ExchangeService.ArchiveItems(IEnumerable<ItemId>, FolderId) ExchangeService.ArchiveItems(IEnumerable<ItemId>, FolderId) ExchangeService.ArchiveItems(IEnumerable<ItemId>, FolderId) Method

Definition

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.

public:
 Microsoft::Exchange::WebServices::Data::ServiceResponseCollection<Microsoft::Exchange::WebServices::Data::ArchiveItemResponse ^> ^ ArchiveItems(System::Collections::Generic::IEnumerable<Microsoft::Exchange::WebServices::Data::ItemId ^> ^ itemIds, Microsoft::Exchange::WebServices::Data::FolderId ^ sourceFolderId);
public Microsoft.Exchange.WebServices.Data.ServiceResponseCollection<Microsoft.Exchange.WebServices.Data.ArchiveItemResponse> ArchiveItems (System.Collections.Generic.IEnumerable<Microsoft.Exchange.WebServices.Data.ItemId> itemIds, Microsoft.Exchange.WebServices.Data.FolderId sourceFolderId);
Public Function ArchiveItems (itemIds As IEnumerable(Of ItemId), sourceFolderId As FolderId) As ServiceResponseCollection(Of ArchiveItemResponse)
Parameters
itemIds
IEnumerable<ItemId>

The IDs of the items to move.

sourceFolderId
FolderId FolderId FolderId

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

Returns

Remarks

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

Applies to