Microsoft SDK for Java

IRemoteArrayField::
GetSize

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.

Syntax

HRESULT GetSize(ULONG *pcElements)

Parameters

[out] pcElements Returns the number of elements in this array.

Return Value

S_OK Success.

E_FAIL This field is not an array.

Remarks

If the array’s size is not statically known, S_OK will be returned with a 0 (zero) element count.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.