ItemcreateRelatedItem Method |
Creates an item with the specified type and action and sets it as the related item on this item.
Namespace:
Aras.IOM
Assembly:
IOM (in IOM.dll) Version: 14.0.9.36244
Syntaxpublic Item createRelatedItem(
string type,
string action
)
Public Function createRelatedItem (
type As String,
action As String
) As Item
public Item createRelatedItem(
String type,
String action
)
public function createRelatedItem(
type : String,
action : String
) : Item
Parameters
- type
- Type: SystemString
Type of the related item. - action
- Type: SystemString
Name of the action that will be set on created related item.
Return Value
Type:
ItemCreated related item with specified type and action.
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 | 'related_id' node is read-only. |
Remarks
If property related_id doesn't exist on this item, it's created.
Returned item shares dom property with this item (i.e. both returned item's and this
item's dom reference the same instance of ArasXmlDocument).
The method is similar to setRelatedItem(Item) except that setRelatedItem(Item) gets related item as method
argument and doesn't create it internally.
See Also