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.9.36244
Syntaxpublic Item createRelationship(
string type,
string action
)
Public Function createRelationship (
type As String,
action As String
) As Item
public Item createRelationship(
String type,
String action
)
public function createRelationship(
type : String,
action : String
) : Item
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.
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 | 'Relationships' node being updated is read-only. |
Remarks
If <Relationships> node doesn't exist inside this.node, it's created.
See Also