Returns a new Item with the specified type and action.

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

Syntax

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

Parameters

itemTypeName
Type: System..::.String
Name of the ItemType.
action
Type: System..::.String
Name of action (e.g. "get", "update", etc.)

Return Value

Newly created instance of Item.

Remarks

The ItemType name is used to set the 'type' attribute and the action name is used to set the 'action' attribute on the Item. The new Item will have no properties. In order to populate it with default property values of its ItemType call Item.fetchDefaultPropertyValues(true) on the item.

See Also