Telnet Factory for .NET

TelnetTask.IsComplete Method 

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

public bool IsComplete();

Return Value

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

Example

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.

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

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

See Also

TelnetTask Class | Jscape.Telnet Namespace