ChildCount Property (ADO MD)

           

The ChildCount property specifies the number of Members for which the current Member is the parent.

Return Values

ChildCount returns a Long integer, and is read-only.

Remarks

Use the ChildCount property to find out how many children a Member has. This may be an estimate of the number of children, and not exact.

For Member objects in a Cellset the maximum number returned is 65536. If the actual number of children exceeds 65536, the value returned will still be 65536. Therefore, the application should interpret a ChildCount of 65536 as greater than or equal to 65536 children.

For Member objects in a CubeDef you can determine the exact number of children by using the Count property on the Children collection. Determining the exact number of children may be slow if the number of children in the collection is large.