The GetSize method of the IRemoteDataField interface returns the number of elements in an array, if known. IRemoteArrayField::GetSize only succeeds if the array’s size is statically recorded in the array’s signature. IRemoteArrayObject::GetSize should always succeed for a valid array object, whether or not its signature explicitly included a size.
HRESULT GetSize(ULONG *pcElements)
[out] pcElements | Returns the number of elements in this array. |
S_OK Success.
E_FAIL This field is not an array.
If the array’s size is not statically known, S_OK will be returned with a 0 (zero) element count.