ITaxonomyManagerMoveCategory Method Ingeniux CMS Content Store API

Makes a Category Node a child or sibling of another Category Nodee, or turns it into a Root Node.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 9.0.565.0 (9.0.565)
Syntax

ICategoryNode MoveCategory(
	ICategoryNode sourceCategory,
	ICategoryNode targetCategory,
	bool asSibling
)

Parameters

sourceCategory
Type: Ingeniux.CMSICategoryNode
The category node to move.
targetCategory
Type: Ingeniux.CMSICategoryNode
The category node at which to place the moved node. If null, the moved node becomes a root node.
asSibling
Type: SystemBoolean
Specifies whether the moved node is placed as a child or as a sibling of the target node. If the target node is null, this parameter has no effect.

Return Value

Type: ICategoryNode
The moved category node as its new location
Exceptions

ExceptionCondition
InvalidOperationExceptionWhen operating user doesn't have the rights to Manage Taxonomy System or doesn't have full access to both the source node and the target node.
Remarks

The moved node is not yet stored in the database.

The operating user must have the rights to Manage Taxonomy System. This user must also have full access to both the source category and target cateogry.

There is no concept of orders in the taxonomy tree.

See Also

Reference