Disconnect Method  
 

Terminate the connection with a server.

Syntax

object.Disconnect

Parameters

None.

Return Value

A value of zero is returned if the connection was terminated successfully. Otherwise, a non-zero error code is returned which indicates the cause of the failure.

See Also

IsConnected Property, Connect Method, OnDisconnect Event