Telnet Factory for .NET

TelnetTask.IsTimedOut Method 

Checks if this TelnetTask exceeded task timeout.

public bool IsTimedOut();

Return Value

True if exceeeded timeout, false otherwise.

Example

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.

[CS]
// Wait for last task to exceed timeout
while (!script.Tail.IsTimedOut()) {
    Thread.Sleep(100);
}

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

See Also

TelnetTask Class | Jscape.Telnet Namespace