LibraryManagerCopy Method

TIBCO Spotfire 11.4 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: 51.0.16121.3915 (51.0.16121.3915)
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: 11.4, 11.3, 11.2, 11.1, 11.0, 10.10
See Also

Reference