_newEnum Property
Returns the enumerator object for the error collection, so that items in the collection can be enumerated using the methods and properties of this interface. The newEnum
property is implemented to support the enumeration of the error collection in Visual Basic For Each... In... Next
constructions.
Visual Basic Syntax
This property is used automatically in For Each... In... Next
constructions.
C/C++ Syntax
HRESULT get_newEnum( IUnknown **ppUnk);
Parameters
- ppUnk [out,retval]
- Pointer to an enumerator object for the error collection.
Return Values
- S_OK
- The enumerator object was retrieved successfully.
- E_FAIL
- The operation failed.
Example
This example uses a For Each... In... Next
construction that implicitly calls the _newEnum
property to iterate an error collection.
This example uses the same two resource files used in the allErrors example. The source code for the sample is in Visual Basic.
- Resource Files (books.xml and books.xsd)
- Visual Basic Code (enumErrors.frm)
- Output for the enumErrors Example
Applies To
IXMLDOMParseErrorCollection Interface
Versioning
MSXML 5.0 and later
To view reference information for Visual Basic, C/C++, or Script only, click the Language Filter button in the upper-left corner of the page.
See Also
item Property | length Property | next Property | reset Method