Click or drag to resize

ItemsetPropertyItem Method

Sets a property to an item reference.

Namespace:  Aras.IOM
Assembly:  IOM (in IOM.dll) Version: 14.0.20.39432
Syntax
public Item setPropertyItem(
	string propertyName,
	Item item
)

Parameters

propertyName
Type: SystemString
Name of the property
item
Type: Aras.IOMItem
Instance of Item whose 'node' appends or replaces child <Item> node under the specified property.

Return Value

Type: Item
Instance of the class that represent the item-property. Returned item shares its 'dom' with this (i.e. dom property of both instances points to the same instance of ArasXmlDocument).
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
  • The item passed to the method doesn't represent a single item.
  • this.node is read-only.
Remarks
The method is trying to find the property with the specified name on the item. If not found, creates it. If the property's node contains child <Item> node, replace it with the passed item, else append passed item to the property's node. After the method was called, the passed item shares its 'dom' with this (i.e. 'dom' property of both instances points to the same instance of ArasXmlDocument).
See Also