3.1.4.1.2.1.3 Count (Opnum 9)
The Count method retrieves the number of elements in the collection.
-
[propget, id(DISPID_PCH_COL__COUNT)] HRESULT Count( [out, retval] long* pVal );
pVal: A pointer to the number of elements in the collection.
Return Values: A signed 32-bit value indicating return status. This method MUST return zero to indicate success, or an HRESULT error value (as specified in [MS-ERREF] section 2.1.1) to indicate failure.
-
Return value/code
Description
0x00000000
S_OK
The call was successful.
0x80004003
E_POINTER
The method failed due to an invalid pointer.
0x8007000E
E_OUTOFMEMORY
The method was unable to allocate required memory.
Exceptions Thrown:
No exceptions are thrown beyond those thrown by the underlying RPC protocol [MS-RPCE].