Disconnect Method

Top  Previous  Next

The Disconnect method ends the connection with the Telnet server.

 

VB.NET Syntax

 

tnxxxx.Disconnect

 

C# Syntax

 

tnxxxx.Disconnect();

 

 

Remarks

 

After the client disconnects, the OnDisconnect event is fired. If the client is not connected to any server, the disconnect method has no effect.

 

See also Connect method and OnDisconnect event.