Clones the item.

Namespace:  Aras.IOM
Assembly:  IOM (in IOM.dll) Version: 11.0.0.6296

Syntax

C#
public Item clone(
	bool cloneRelationships
)
Visual Basic (Declaration)
Public Function clone ( _
	cloneRelationships As Boolean _
) As Item
J#
public Item clone(
	boolean cloneRelationships
)
JScript
public function clone(
	cloneRelationships : boolean
) : Item

Parameters

cloneRelationships
Type: System..::.Boolean
If true, all relationships of the item are cloned as well.

Return Value

Cloned item.

Remarks

The method creates a new instance of ArasXmlDocument that is referenced by the cloned item's dom and is populated by xml of this.node. Cloned item as well as cloned relationships have new IDs and action attributes set to 'add'.

Exceptions

ExceptionCondition
System..::.ExceptionThe instance doesn't represent a single item.
System..::.ArgumentExceptionthis.node or some of its children nodes are read-only.

See Also