Checks if this TelnetTask was cancelled.
Namespace: Jscape.TelnetAssembly: Jscape.Telnet (in Jscape.Telnet.dll) Version: 2.6.1.0
Syntax
C# |
---|
public bool IsCancelled() |
Visual Basic |
---|
Public Function IsCancelled As Boolean |
Visual C++ |
---|
public: bool IsCancelled() |
Return Value
True if cancelled, false otherwise.
Examples
To check if a task was cancelled, invoke the IsCancelled method.
In this example, the last task (denoted by Tail) is checked if cancelled
and if not, invokes a 100ms thread interrupt.
CopyIsComplete
CopyIsCancelled

// Wait for last task to be cancelled while (!script.Tail.IsCancelled()) { Thread.Sleep(100); }

' Wait for last task to be cancelled While (!script.Tail.IsCancelled()) Thread.Sleep(100) End While