ChannelState PropertyChannelState Property*
*Contents  *Index  *Topic Contents
*Previous Topic: ChannelProperty Property
*Next Topic: ChannelTopic Property

ChannelState Property

Returns the current channel state of the control.

Syntax

value=object.ChannelState

Parameters

valueRequired. A variable of enumChannelState type.
objectRequired. An object expression that evaluates to a Channel object.

Remarks

Access is read-only.

At creation, the state of a channel is chsClosed. When calling its JoinChannel or CreateChannel method, the state becomes asynchronously chsOpening and chsOpen. It becomes chsClosed again when the user leaves the channel or is kicked from the channel, or when a server disconnection occurs.

If the Channel object is removed from the collection, attempts to access any of its properties or methods will cause an occurrence of the Channels collection error 3172, "The channel is no more part of the collection."

The asynchronous channel state changes are exposed through the OnChannelState event.


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