Checks if this TelnetTask exceeded task timeout.

Namespace: Jscape.Telnet
Assembly: Jscape.Telnet (in Jscape.Telnet.dll) Version: 2.6.1.0

Syntax

C#
public bool IsTimedOut()
Visual Basic
Public Function IsTimedOut As Boolean
Visual C++
public:
bool IsTimedOut()

Return Value

True if exceeeded timeout, false otherwise.

Examples

To check if a task exceeded timeout, invoke the IsTimedOut method. In this example, the last task (denoted by Tail) is checked if it exceeded timeout and if not, invokes a 100ms thread interrupt.
CopyIsTimedOut
// Wait for last task to exceed timeout
while (!script.Tail.IsTimedOut()) {
    Thread.Sleep(100);
}

CopyIsTimedOut
' Wait for last task to exceed timeout
While (!script.Tail.IsTimedOut()) 
    Thread.Sleep(100)
End While

See Also