This method is used to obtain an enumerator property that can be used to enumerate through the list of the exported objects.
HRESULT _NewEnum(
IUnknown **ppVal
);
ppVal [out, retval]
A pointer that points to a location that stores the enumerator of objects in the export list.
S_OK indicates successful completion.
An error value indicates that the method failed to complete successfully. For more information, see XML Encoding Errors.
The _NewEnum property is used by Automation-based programming languages to enumerate through collections. It is never used directly; instead, enumeration constructs use it internally. In Microsoft® Visual Basic®, this enables the following example:
For each item in the collection.
...
Next item
In the example, Collection
is an object that contains the _NewEnum property.