Creates an item with the specified type and action and sets it as the specified property of this item.

Namespace:  Aras.IOM
Assembly:  IOM (in IOM.dll) Version: 11.0.0.6296

Syntax

C#
public Item createPropertyItem(
	string propName,
	string type,
	string action
)
Visual Basic (Declaration)
Public Function createPropertyItem ( _
	propName As String, _
	type As String, _
	action As String _
) As Item
J#
public Item createPropertyItem(
	String propName,
	String type,
	String action
)
JScript
public function createPropertyItem(
	propName : String, 
	type : String, 
	action : String
) : Item

Parameters

propName
Type: System..::.String
Name of property.
type
Type: System..::.String
Type of the item property.
action
Type: System..::.String
Name of the action that will be set on the item property.

Return Value

Created item with the specified type and action.

Remarks

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 setPropertyItem(propName, item) except that setPropertyItem(propName, item) gets an item as the method argument and doesn't create it internally.

Exceptions

ExceptionCondition
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..::.ArgumentExceptionProperty node is read-only.

See Also