ItemsetRelatedItem Method |
Sets the 'related_id' property to an item reference.
Namespace:
Aras.IOM
Assembly:
IOM (in IOM.dll) Version: 14.0.9.36244
Syntaxpublic void setRelatedItem(
Item ritem
)
Public Sub setRelatedItem (
ritem As Item
)
public void setRelatedItem(
Item ritem
)
public function setRelatedItem(
ritem : Item
)
Parameters
- ritem
- Type: Aras.IOMItem
Related item
ExceptionsException | Condition |
---|
Exception | -
The instance doesn't represent a single item.
-
The instance has a wrong internal structure (e.g. item.node doesn't belong to item.dom; etc.).
|
ArgumentException | -
The item passed to the method doesn't represent a single item.
- this.node is read-only.
|
Remarks
The method is trying to find 'related_id' property on the item. If not found, creates it.
If 'related_id' contains child <Item> node, replace it with the passed item, else append
passed item to the 'related_id' node. After the method was called, the passed related item shares its
dom with this item (i.e. dom property of both instances reference the
same instance of ArasXmlDocument).
See Also