State

State() as Integer

or

State() as CclEPIStates

Returns a value which indicates the current state of the session. Possible values are:
cclActive
Connected
cclServer
Transaction in progress in the CICS® server.
cclClient
CICS server is waiting for a response from the client
cclDiscon
Disconnected
cclError
Error, call ExCode and Diagnose methods for further information.

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