ConnectionState PropertyConnectionState Property*
*Contents  *Index  *Topic Contents
*Previous Topic: Channels Property
*Next Topic: ConnectionType Property

ConnectionState Property

Returns the current connection state of the control.

Syntax

value=object.ConnectionState

Parameters

valueRequired. A variable of enumConnectionState type.
objectRequired. An object expression that evaluates to an MsChatPr control.

Remarks

Access is read-only.

This property is always accessible. After successfully calling the Connect method, ConnectionState switches from csDisconnected to csConnecting to csConnected.

After successfully calling the Login method, ConnectionState switches from csConnected to csLogging to csLogged, or from csDisconnected to csConnecting to csLogging to csLogged.

When calling Disconnect, ConnectionState switches from csConnected to csDisconnecting to csDisconnected, or from csLogged to csDisconnecting to csDisconnected.

Example

Dim cs As enumConnectionState
cs = MsChatPr1.ConnectionState

See Also

Connect, Disconnect, Login


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