You are here: Ektron Namespace > .NET Assemblies > Ektron.Cms.API Namespace > Ektron.Cms.API.Content Namespace > Classes > Taxonomy Class > Taxonomy Methods > CloneTaxonomy
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
Taxonomy.CloneTaxonomy Method

Copy or move a group of taxonomy categories from one taxonomy to another. For example, you want move categories one, two and three from taxonomy A to taxonomy B. Copying or moving a taxonomy category depends on whether the DeleteSource parameter is set True or False. If DeleteSouce is set to True, the taxonomy category is deleted. You can specify how many node levels are included by setting the Depth parameter. You can also choose whether to move/copy items in the category or just clone the category's structure.

C#
public Long CloneTaxonomy(Long sourceId, Long destinationId, int LanguageId, int Depth, Boolean WithItems, Boolean DeleteSource);
Visual Basic
Public Function CloneTaxonomy(ByVal sourceId As Long, ByVal destinationId As Long, ByVal LanguageId As Integer, ByVal Depth As Integer, ByVal WithItems As Boolean, ByVal DeleteSource As Boolean) As Long
Parameters 
Description 
sourceId 
The ID of the source category being moved or copied. 
destinationId 
The target ID where the category will be moved or copied. 
LanguageId 
The category's language ID. 
Depth 
Specify an integer that represents the amount of category sub levels to be copied or moved. For example, if you want to copy two category levels below the source category, enter 2.
To copy or move all sub categories enter -1
WithItems 
Enter True to copy or move all items from the source structure. If you enter false, copy/move only the taxonomy category's structure. 
DeleteSource 
Enter True to move the source category. This deletes the source category after the node is cloned. Set to false to copy the source category. This leaves the original category in its structure. 

int

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!