Copy one or more library items to the specified folder.
If an item to copy is a folder, all contained items and folders are included.
The items and any descendants will all be given new IDs.
All ancestors will also be updated with a new "Updated By Principal" and "Updated Timestamp".
If an error occurs all changes will be rolled back.
Namespace: Spotfire.Dxp.Framework.Library
Assembly: Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 67.0.20819.4186 (67.0.20819.4186)
Syntax
C#
public LibraryItemCollection Copy( IEnumerable<LibraryItem> itemsToCopy, LibraryItem folderToCopyItemsTo, LibraryManager.ConflictResolution conflictResolution )
Parameters
- itemsToCopy
- Type: System.Collections.Generic.IEnumerable<LibraryItem>
The items to copy. Use TryGetItem(String, LibraryItemType, LibraryItem,LibraryItemRetrievalOption[]), TryGetItem(Guid, LibraryItem,LibraryItemRetrievalOption[]) or Search(String,LibraryItemRetrievalOption[]) to retrieve the items. - folderToCopyItemsTo
- Type: Spotfire.Dxp.Framework.Library.LibraryItem
The folder to copy the items to. - conflictResolution
- Type: Spotfire.Dxp.Framework.Library.LibraryManager.ConflictResolution
The conflict resolution to use when items with the same name exists in the destination folder.
Return Value
Type: LibraryItemCollectionThe items copied to the new folder.
Version Information
Supported in: 14.5, 14.4, 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also