NewEnum Property (RootNode)
Topic Last Modified: 2006-06-13
The NewEnum property returns an IEnumVARIANT interface on an Enumeration object for the collection. This property is hidden from Microsoft® Visual Basic® and Visual Basic Scripting Edition (VBScript).
Applies To
Syntax
HRESULT get_NewEnum(IUnknown** pVal);
Parameters
- pVal
Returned reference to the IUnknown Interface of the object.
Remarks
This property is hidden within Visual Basic and VBScript. This property is a standard property used to support enumerating collections, for example following syntax in Visual Basic.
For Each Obj in Collection
'
Next Obj
Example
The following example enumerates the RootNodes collection using NewEnum.
Dim rns As RootNodes
Dim rn As RootNode
Set rns = EXTV1.GetRootNodes
For Each rn in rns
MsgBox rn.DisplayName