3.2.4.2.1.3 Count (get) (Opnum 9)

The Count method returns the number of objects in the collection of Objects Being Enumerated.

 [propget, id(FSRM_PROPERTY(FSRM_DISPID_COLLECTION | 0x01))] HRESULT Count(
   [out, retval] long* count
 );

count: Pointer to a variable that upon successful completion receives the number of objects in the collection of Objects Being Enumerated.

Return Values: The method MUST return zero on success, or a nonzero error code on failure.

Return value/code

Description

0x80004003

E_POINTER

The count parameter is NULL.

Upon receiving this message, the server MUST validate parameters:

  • Verify that count is not NULL.

If any validation fails, the server MUST terminate processing and return a nonzero error code.

The server MUST set count to the number of objects in the collection of Objects Being Enumerated.