ExchangeService.ArchiveItems(IEnumerable<ItemId>, FolderId) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The ID of the primary folder from which items will be archived.
Returns
A collection of ArchiveItemResponse objects.
Remarks
Calling this method results in a call to Exchange Web Services (EWS).