ITaxonomyManagerCopyCategory Method
|
Namespace:
Ingeniux.CMS
Assembly:
Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax ICategoryNode CopyCategory(
ICategoryNode sourceCategory,
ICategoryNode targetCategory,
bool asSibling,
bool recursive
)
Function CopyCategory (
sourceCategory As ICategoryNode,
targetCategory As ICategoryNode,
asSibling As Boolean,
recursive As Boolean
) As ICategoryNode
ICategoryNode^ CopyCategory(
ICategoryNode^ sourceCategory,
ICategoryNode^ targetCategory,
bool asSibling,
bool recursive
)
abstract CopyCategory :
sourceCategory : ICategoryNode *
targetCategory : ICategoryNode *
asSibling : bool *
recursive : bool -> ICategoryNode
Parameters
- sourceCategory
- Type: Ingeniux.CMSICategoryNode
The category node to copy. Cannot be null. - targetCategory
- Type: Ingeniux.CMSICategoryNode
The category node under which to place the copy. If null, the copy will be placed as a new root category. - asSibling
- Type: SystemBoolean
Specifies whether the copy is placed as a child or as a sibling of the target node. If the target node is null, this parameter has no effect. - recursive
- Type: SystemBoolean
Specifies whether the copy includes all the category node's descendants.
Return Value
Type:
ICategoryNodeThe copy that was placed at the correct location
Exceptions Remarks
The copy returned is not yet stored in the database.
The operating user must have the rights to Manage Taxonomy System. This user must also have at least read-only
permissions on the source category and full access to the target cateogry. (If the target category is null, the user's permissions don't matter.)
There is no concept of orders in the taxonomy tree.
See Also