ItemgetPropertyItem Method |
Gets item-property by name.
Namespace:
Aras.IOM
Assembly:
IOM (in IOM.dll) Version: 14.0.9.36244
Syntaxpublic Item getPropertyItem(
string propertyName
)
Public Function getPropertyItem (
propertyName As String
) As Item
public Item getPropertyItem(
String propertyName
)
public function getPropertyItem(
propertyName : String
) : Item
Parameters
- propertyName
- Type: SystemString
Property name.
Return Value
Type:
Item
Found item-property. If by some reason an item can't be returned (e.g. 'this.dom' doesn't have
a property with the specified name or the property contains just id but type of
the item-property is unknown), the method returns null.
NOTE: If specified property name is 'id' then the method returns
this item.
ExceptionsException | Condition |
---|
Exception | The instance doesn't represent a single item. |
Remarks
The method tries to find the specified property on the item. If found, the propery may either
a) contain child <Item> node or b) contain just id. In case a), the child <Item> node is
used for constructing the returned Item; note, that in this case the returned item shares dom with
this item. In case b), an attempt is made to construct a simple Item with the following dom:
<Item type='...' id='...'><id>...</id></Item>
to be returned. Note that in this case, the returned Item doesn't share its dom with this.
See Also