ExchangeService.CopyItems 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.
Overloads
CopyItems(IEnumerable<ItemId>, FolderId) |
Copies multiple items in a single call to Exchange Web Services (EWS). |
CopyItems(IEnumerable<ItemId>, FolderId, Boolean) |
Copies multiple items in a single call to Exchange Web Services (EWS).This method was introduced in the Exchange Web Services (EWS) Managed API 1.2. |
CopyItems(IEnumerable<ItemId>, FolderId)
Copies multiple items in a single call to Exchange Web Services (EWS).
public:
Microsoft::Exchange::WebServices::Data::ServiceResponseCollection<Microsoft::Exchange::WebServices::Data::MoveCopyItemResponse ^> ^ CopyItems(System::Collections::Generic::IEnumerable<Microsoft::Exchange::WebServices::Data::ItemId ^> ^ itemIds, Microsoft::Exchange::WebServices::Data::FolderId ^ destinationFolderId);
public Microsoft.Exchange.WebServices.Data.ServiceResponseCollection<Microsoft.Exchange.WebServices.Data.MoveCopyItemResponse> CopyItems (System.Collections.Generic.IEnumerable<Microsoft.Exchange.WebServices.Data.ItemId> itemIds, Microsoft.Exchange.WebServices.Data.FolderId destinationFolderId);
Public Function CopyItems (itemIds As IEnumerable(Of ItemId), destinationFolderId As FolderId) As ServiceResponseCollection(Of MoveCopyItemResponse)
Parameters
- itemIds
- IEnumerable<ItemId>
The IDs of the items to be copied.
- destinationFolderId
- FolderId
The ID of the folder to which the specified items are to be copied.
Returns
A collection of copy results for each of the specified items.
Remarks
Calling this method results in a call to Exchange Web Services (EWS).
Applies to
CopyItems(IEnumerable<ItemId>, FolderId, Boolean)
Copies multiple items in a single call to Exchange Web Services (EWS).This method was introduced in the Exchange Web Services (EWS) Managed API 1.2.
public:
Microsoft::Exchange::WebServices::Data::ServiceResponseCollection<Microsoft::Exchange::WebServices::Data::MoveCopyItemResponse ^> ^ CopyItems(System::Collections::Generic::IEnumerable<Microsoft::Exchange::WebServices::Data::ItemId ^> ^ itemIds, Microsoft::Exchange::WebServices::Data::FolderId ^ destinationFolderId, bool returnNewItemIds);
public Microsoft.Exchange.WebServices.Data.ServiceResponseCollection<Microsoft.Exchange.WebServices.Data.MoveCopyItemResponse> CopyItems (System.Collections.Generic.IEnumerable<Microsoft.Exchange.WebServices.Data.ItemId> itemIds, Microsoft.Exchange.WebServices.Data.FolderId destinationFolderId, bool returnNewItemIds);
Public Function CopyItems (itemIds As IEnumerable(Of ItemId), destinationFolderId As FolderId, returnNewItemIds As Boolean) As ServiceResponseCollection(Of MoveCopyItemResponse)
Parameters
- itemIds
- IEnumerable<ItemId>
The IDs of the items to be copied.
- destinationFolderId
- FolderId
The ID of the folder to which the specified items are to be copied.
- returnNewItemIds
- Boolean
true to return new item identifiers for the copied items; otherwise, false to return the original item identifiers.
Returns
A collection of copy results for each of the specified item IDs.
Remarks
Calling this method results in a call to Exchange Web Service (EWS).