WaitForDisconnect |
Top Previous Next |
This method waits until the telnet connection is successfully closed, or the timeout period expires.
VB.NET
[Boolean =] Session.WaitForDisconnect([TimeOut] As Integer)
C#
[bool =] Session.WaitForDisconnect(int [TimeOut]);
Remarks
The Timeout parameter is optional. This method returns True if the wait was successful and False if the Timeout period has expired. The TimeOut parameter is measured in milliseconds. If you pass a timeout value in the Timeout parameter of this method, the value of the property WaitTimeout will not have any effect.
|