<div class="content" name="Count" uuid="5d78e5eb-ab54-4dfd-9726-5a26fb4f0168"><p>The Count method returns the number of objects in the
collection of <b>Objects Being Enumerated</b>.</p><dl>
<dd>
<div><pre> [propget, id(FSRM_PROPERTY(FSRM_DISPID_COLLECTION | 0x01))] HRESULT Count(
   [out, retval] long* count
 );
</pre></div>
</dd></dl><p><b>count: </b>Pointer to a variable that upon
successful completion receives the number of objects in the collection of <b>Objects
Being Enumerated</b>.</p><p><b>Return Values: </b>The method MUST return zero on
success, or a nonzero error code on failure.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>0x80004003 E_POINTER</td>
  <td>The count parameter is NULL.</td>
 </tr></tbody></table>
</dd></dl><p>Upon receiving this message, the server MUST validate
parameters:</p><ul><li><p><span><span> 
</span></span>Verify that <i>count</i> is not NULL.</p>
</li></ul><p>If any validation fails, the server MUST terminate
processing and return a nonzero error code.</p><p>The server MUST set <i>count</i> to the number of objects in
the collection of <b>Objects Being Enumerated</b>.</p></div>