Platform SDK: Exchange 2000 Server

_NewEnum Property

[This is preliminary documentation and subject to change.]

Returns an IEnumVariant interface on an enumeration object for the collection. This property is hidden from Microsoft® Visual Basic® and Microsoft® Visual Basic® Scripting Edition (VBScript).

[Visual Basic, VBScript]

Used automatically in For Each In constructs

[C++]
HRESULT get__NewEnum(IUnknown** pVal);
[IDL]
HRESULT [propget] _NewEnum([out,retval] IUnknown** pVal);

Remarks

This property is hidden within Visual Basic and VBScript. It is a standard property used to support enumerating collections, such as the

For Each in 

construct in Visual Basic.

Example

[Visual Basic]
Dim iEx as IException
Dim iExs as IExceptions
...
For Each iEx in iExs   ' _NewEnum used internally here
...
Next iEx