3.1.4.6.4 get_Count (Opnum 10)

The get_Count method gets the count of the number of items in the collection contained by the enumerator.

 [id(2), propget, helpstring("Number of items in the collection")] HRESULT Count(
   [out, retval] long* pCount
 );

pCount: If the function returns a success HRESULT, this MUST contain the number specifying the number of elements in the underlying collection.

Return Values: An HRESULT specifying success or failure. All success codes MUST be treated the same, and all failure codes MUST be treated the same.

When this method is invoked, the server MUST attempt to return the count of the number of elements in the collection. If the server is not able to return the count, it MUST fail the call, returning a failure HRESULT back to the client.