LibraryManagerCopy Method

Spotfire 14.3 API Reference
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: 65.0.19510.3242 (65.0.19510.3242)
Syntax

C#
public LibraryItemCollection Copy(
	IEnumerable<LibraryItem> itemsToCopy,
	LibraryItem folderToCopyItemsTo,
	LibraryManagerConflictResolution conflictResolution
)

Parameters

itemsToCopy
Type: System.Collections.GenericIEnumerableLibraryItem
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.LibraryLibraryItem
The folder to copy the items to.
conflictResolution
Type: Spotfire.Dxp.Framework.LibraryLibraryManagerConflictResolution
The conflict resolution to use when items with the same name exists in the destination folder.

Return Value

Type: LibraryItemCollection
The items copied to the new folder.
Version Information

Supported in: 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also

Reference