Checks if this TelnetTask is complete due to sucessful completion, cancellation or exceeded timeout.

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

Syntax

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

Return Value

True if completed, cancelled or timed-out, false otherwise.

Examples

To check if a task has completed, invoke the IsComplete method. In this example, the last task (denoted by Tail) is checked if completed and if not, invokes a 100ms thread interrupt.
CopyIsComplete
// Wait for last task to complete
while (!script.Tail.IsComplete()) {
    Thread.Sleep(100);
}

CopyIsComplete
' Wait for last task to complete
While (!script.Tail.IsComplete()) 
    Thread.Sleep(100)
End While

See Also