Creates new <Item> node with specified 'type' and 'action' under <Relationships> node
inside this.node.
Namespace:
Aras.IOM
Assembly:
IOM (in IOM.dll) Version: 11.0.0.6296
Syntax
C# |
---|
public Item createRelationship(
string type,
string action
) |
Visual Basic (Declaration) |
---|
Public Function createRelationship ( _
type As String, _
action As String _
) As Item |
J# |
---|
public Item createRelationship(
String type,
String action
) |
JScript |
---|
public function createRelationship(
type : String,
action : String
) : Item |
Parameters
- type
- Type: System..::.String
Value of attribute 'type' that will be set on the created <Item> node.
- action
- Type: System..::.String
Value of attribute 'action' that will be set on the created <Item> node.
Return Value
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.
Remarks
Exceptions
Exception | Condition |
---|
System..::.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.).
|
System..::.ArgumentException | 'Relationships' node being updated is read-only. |
See Also