Setting a task timeout |
A TelnetTask will continue to run until it has encountered it's specified end prompt or the timeout has expired. The timeout property allows you to abort the current TelnetTask that does not complete within the specified timeout
You may set a timeout value that applies globally to all tasks associated with a TelnetSession. The Telnet Factory for .NET documentation contains more information about setting a TelnetSession timeout.
Example
This example sets the task timeout to 6 seconds. The specified task will abort if not completed prior to the timeout expiration.
[C#]
// set task timeout to 6 seconds.
myTask.Timeout = 6000;
[Visual Basic]
' set task timeout to 6 seconds.
myTask.Timeout = 6000