<div class="content" name="NewEnum" uuid="4d8bff49-779f-438e-9604-ac666bc4402b"><p>The ICategoryCollection::_NewEnum (opnum 9) method retrieves
an enumerator that can be used to enumerate the collection of <b>ICategory</b>
instances.</p><dl>
<dd>
<div><pre> HRESULT _NewEnum(
   [out, retval] IUnknown** retval
 );
</pre></div>
</dd></dl><p><b>retval: </b>The <b>IUnknown</b> interface of an
object that implements the <b>IEnumVARIANT</b> interface, which can be used to
enumerate the elements in the collection.</p><p><b>Return Values: </b>The method MUST return
information in an <b>HRESULT</b> data structure. The severity bit in the
structure identifies the following conditions:</p><ul><li><p><span><span>  </span></span>If
the severity bit is set to 0, the method completed successfully.</p>
</li><li><p><span><span>  </span></span>If
the severity bit is set to 1, the method failed and encountered a fatal error.</p>
</li></ul><p><b>Exceptions Thrown:</b> No exceptions are thrown beyond
those thrown by the underlying RPC protocol <span><a href="../ms-rpce/290c38b1-92fe-4229-91e6-4fc376610c15" data-linktype="relative-path">[MS-RPCE]</a></span>.</p><p>This method SHOULD create a new object that implements the <b>IEnumVARIANT</b>
interface and enumerates over the <b>List</b> ADM element.</p></div>