State

State() as Integer

or

State() as CclEPIStates

Returns a value which indicates the current state of the session. These values are the same as those returned by the state method in the Session COM class.

Constants are available in the type library. Use the Visual Basic Object Browser to view them.