Contents Index Topic Contents | ||
Previous Topic: IXMLElementCollection::put_length Next Topic: IXMLElementCollection::item |
IXMLElementCollection::get_newEnum
HRESULT IXMLElementCollection::get__newEnum( IUnknown ** ppUnk)Returns a pointer to an IEnumVARIANT enumerator that is obtained by calling IUnknown::QueryInterface on the returned object.
- Returns S_OK if successful. Error values include E_FAIL if there are no children, and E_OUTOFMEMORY and E_INVALIDARG.
- ppUnk
- Indirect pointer in which to return the enumerator.
IEnumvariant is documented in the Microsoft Developer Network (MSDN). It allows the enumeration of variants. Each variant that is returned is of type VT_DISPATCH. This returned object is merely an element object, and the IXMLElement interface on the returned object can be obtained by calling IUnknown::QueryInterface on it. It is up to the caller to call IUnknown::Release on the returned enumeration. It is also the responsibility of the caller to call VariantClear on every returned element.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.