<div class="content"><p> </p><p>The get_NewEnum method gets an <span><a href="70b37fd7-5c0a-4354-9242-47dce8c00bf0" data-linktype="relative-path">IEnumEventObject</a></span>-based
<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(1), propget, helpstring(&#34;Create new IEnumEventObject&#34;)] HRESULT NewEnum(
   [out, retval] IEnumEventObject** ppEnum
 );
</pre></div>
</dd></dl><p><b>ppEnum: </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 supporting the IEnumEventObject interface. Note
this method is supported only if the underlying collection is of <span><a href="66217d57-8c60-4423-9b24-52923f4c2afa" data-linktype="relative-path">event
classes</a></span> or <span><a href="0d617a76-fc58-455c-9e30-1a8436c5f73a" data-linktype="relative-path">subscriptions</a></span>.</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">ppEnum</a></span>
interface.</p></div>