IExport::_NewEnum Method

Meta Data Services Programming

Meta Data Services Programming

IExport::_NewEnum Method

This method is used to obtain an enumerator property that can be used to enumerate through the list of the exported objects.

COM Syntax

HRESULT _NewEnum(
      IUnknown **ppVal
);

Parameters

ppVal [out, retval]

A pointer that points to a location that stores the enumerator of objects in the export list.

Return Value

S_OK indicates successful completion.

An error value indicates that the method failed to complete successfully. For more information, see XML Encoding Errors.

Automation Syntax

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.

See Also

XML Import Export