Cancels the current task and sets it's status to cancelled.
Namespace: Jscape.TelnetAssembly: Jscape.Telnet (in Jscape.Telnet.dll) Version: 2.6.1.0
Syntax
C# |
---|
public void Cancel() |
Visual Basic |
---|
Public Sub Cancel |
Visual C++ |
---|
public: void Cancel() |
Remarks
A TelnetTask will continue to run until it has encountered
it's specified end prompt. In certain conditions it is possible that
the end prompt may never return. Typically this is due to an error
returned by the shell when running the task that does not match
your specified end prompt. In these cases you may need to cancel
the current TelnetTask so as to continue your programs execution.