BuiltIn.EnumEvents Method

Applies to TestComplete 15.49, last modified on March 17, 2023
This method is obsolete. See the Remarks section below.


The EnumEvents method returns the ObjEventIterator object which lets you work with a collection of object’s events. Use HasNext and Next methods of the ObjEventIterator object to iterate over the collection of the object’s events.


BuiltIn.EnumEvents(Param1, Param2)

Param1 [in]    Required    Object    
Param2 [in]    Optional    Boolean Default value: False   
Result An ObjEventIterator object

Applies To

The method is applied to the following object:


The method has the following parameters:


The object whose events you want to retrieve. If this parameter has the null value (that is, Nothing in VBScript, null in JavaScript, JScript, C++Script and C#Script, None in Python and nil in DelphiScript), the EnumEvents will also return null.


Specifies whether to retrieve the object's hidden events.

Result Value

An ObjEventIterator object which provides a scripting interface to a collection of object’s events.


This method is obsolete. It is supported for backward compatibility only. To obtain information about the object’s events, use the aqObject.GetEvents method.

See Also

GetEvents Method
GetProperties Method
GetMethods Method
GetFields Method
aqObjIterator Object
aqObjEvent Object

Highlight search results