Click or drag to resize

ItemcreateRelationship Method

Creates new <Item> node with specified 'type' and 'action' under <Relationships> node inside this.node.

Namespace:  Aras.IOM
Assembly:  IOM (in IOM.dll) Version: 14.0.20.39432
Syntax
public Item createRelationship(
	string type,
	string action
)

Parameters

type
Type: SystemString
Value of attribute 'type' that will be set on the created <Item> node.
action
Type: SystemString
Value of attribute 'action' that will be set on the created <Item> node.

Return Value

Type: Item
Item that reference newly created <Item> node. Returned item shares it's DOM with this item, i.e. both items reference the same instance of ArasXmlDocument throught their dom properties.
Exceptions
ExceptionCondition
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'Relationships' node being updated is read-only.
Remarks
If <Relationships> node doesn't exist inside this.node, it's created.
See Also