Sets action attribute on the item; sets specified properties and applies the AML, which is the XML of this.dom.

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

Syntax

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

Parameters

action
Type: System..::.String
Action name. Overwrites current action set on the item. Note, that action can also be set when item is created or by Item.setAction(...) method.
argsObject
Type: System.Collections..::.Hashtable
A collection of name-value pairs where 'name' is interpreted as 'property name' and 'value' as the property value. Specified in the collection properties are set on the item prior to applying its AML.

Return Value

Returns an Item where the dom property is the XML returned from the server. The dom may contain an Item, a forest of Items (i.e. a disjoint union of AML trees), or an error.

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.).

See Also