MemberCount PropertyMemberCount Property*
*Contents  *Index  *Topic Contents
*Previous Topic: Index Property
*Next Topic: MemberIdentity Property

MemberCount Property

Synchronously returns the current number of members in the channel.

Syntax

value=object.MemberCount 

Parameters

valueRequired. A long integer that will receive the current number of members in the channel.
objectRequired. An object expression that evaluates to a Channel object.

Remarks

Access is read-only.

If the Channel object is not open, attempts to access its MemberCount property will cause an occurrence of the Channel Error 3062, "The channel is not open."

Examples

The user can also synchronously obtain the member count of the channel by using:

ChannelProperty("MemberCount")

But the MemberCount property is simpler and more efficient.

The asynchronous methods of accessing the member count of the channel are:

&lt:channel>.QueryChannelProperty "MemberCount"
'and
&lt:control>.QueryChannelProperty "MemberCount", &lt:channelname>

See Also

ChannelProperty, QueryChannelProperty


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.