Gets related item of the relationship.

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

Syntax

C#
public Item getRelatedItem()
Visual Basic (Declaration)
Public Function getRelatedItem As Item
J#
public Item getRelatedItem()
JScript
public function getRelatedItem() : Item

Return Value

Related item. If by some reason the related item can't be returned (e.g. 'this.dom' doesn't have 'related_id' property or type of the related item is unknown), the method returns null.

Remarks

Tries to find related_id property on the item. If found, the propery may either a) contain child <Item> node or b) contain just id. In case a), the child <Item> node is used for constructing the returned Item; note, that in this case the returned item shares dom with this item. In case b), an attempt is made to construct a simple Item with the following dom: <Item type='...' id='...'><id>...</id></Item> to be returned. Note that in this case, the returned Item doesn't share its dom with this.

Exceptions

ExceptionCondition
System..::.ExceptionThe instance doesn't represent a single item.

See Also