<div class="content" name="NewEnum" uuid="51f00701-b662-4944-8cc4-5230f9747057"><p>The get__NewEnum method gets a DCOM <span><a href="e74594a9-404c-4729-91f4-3fe4453cdf4d#gt_8bb43a65-7a8c-4585-a7ed-23044772f8ca" data-linktype="relative-path">object</a></span>
for enumerating the underlying collection.</p><dl>
<dd>
<div><pre> [id(DISPID_NEWENUM), propget, restricted, helpstring(&#34;Create new IEnumVARIANT&#34;)] HRESULT _NewEnum(
   [out, retval] IUnknown** ppUnkEnum
 );
</pre></div>
</dd></dl><p><b>ppUnkEnum: </b>If the function returns a success <span><a href="../ms-dtyp/a9046ed2-bfb2-4d56-a719-2824afce59ac" data-linktype="relative-path">HRESULT</a></span>,
this MUST contain a DCOM object which implements the <span><a href="70b37fd7-5c0a-4354-9242-47dce8c00bf0" data-linktype="relative-path">IEnumEventObject</a></span>
interface.</p><p><b>Return Values: </b>An HRESULT specifying success
or failure. All success codes MUST be treated the same, and all failure codes
MUST be treated the same.</p><p>When this method is invoked, the <span><a href="e74594a9-404c-4729-91f4-3fe4453cdf4d#gt_434b0234-e970-4e8c-bdfa-e16a30d96703" data-linktype="relative-path">server</a></span> MUST attempt
to create a collection-based DCOM object which supports the IEnumEventObject
interface, and fail the call, returning a failure HRESULT back to the client if
it cannot. The underlying collection MUST be the same collection that is being
enumerated by the DCOM object instance servicing this call. The created
collection DCOM object MUST be returned through the <span><a href="../ms-dcom/2b4db106-fb79-4a67-b45f-63654f19c54c" data-linktype="relative-path">ppUnkEnum</a></span>
interface.</p></div>