Add specified item as a relationship item to the instance.
Namespace:
Aras.IOMAssembly: IOM (in IOM.dll) Version: 11.0.0.6296
Syntax
C# |
---|
public void addRelationship( Item item ) |
Visual Basic (Declaration) |
---|
Public Sub addRelationship ( _ item As Item _ ) |
J# |
---|
public void addRelationship( Item item ) |
JScript |
---|
public function addRelationship( item : Item ) |
Parameters
- item
- Type: Aras.IOM..::.Item
Items to be added to item's relationships.
Remarks
No checking that passed item is a relationship of this is performed. The method just inserts
passed item's node under 'Relationships' node inside this.node (if 'Relationships' node
doesn't exist, it's created). After the method was called the item passed as argument to the method
shares its dom with this (i.e. both items reference the same instance of ArasXmlDocument
through their dom properties).
Exceptions
Exception | Condition |
---|---|
System..::.Exception | The instance doesn't represent a single item. |
System..::.ArgumentException | The argument is not a single item. |