ITaxonomyManagerCopyCategory Method
|
Namespace:
Ingeniux.CMS
Assembly:
Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax ICategoryNode CopyCategory(
ICategoryNode sourceCategory,
ICategoryNode targetCategory,
bool asSibling,
bool recursive,
bool copyAssociations = false
)
Function CopyCategory (
sourceCategory As ICategoryNode,
targetCategory As ICategoryNode,
asSibling As Boolean,
recursive As Boolean,
Optional copyAssociations As Boolean = false
) As ICategoryNode
ICategoryNode^ CopyCategory(
ICategoryNode^ sourceCategory,
ICategoryNode^ targetCategory,
bool asSibling,
bool recursive,
bool copyAssociations = false
)
abstract CopyCategory :
sourceCategory : ICategoryNode *
targetCategory : ICategoryNode *
asSibling : bool *
recursive : bool *
?copyAssociations : bool
(* Defaults:
let _copyAssociations = defaultArg copyAssociations false
*)
-> 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. - copyAssociations (Optional)
- Type: SystemBoolean
[Missing <param name="copyAssociations"/> documentation for "M:Ingeniux.CMS.ITaxonomyManager.CopyCategory(Ingeniux.CMS.ICategoryNode,Ingeniux.CMS.ICategoryNode,System.Boolean,System.Boolean,System.Boolean)"]
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