Disconnect Method  
 

Terminate the connection with a remote host.

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.

Remarks

This method terminates the network connection with the server.

See Also

Connect Method