Gets/Sets the timeout in milliseconds for a
running tasks to receive the expected end prompt.
Default timeout is 120000ms (120 seconds).
Namespace: Jscape.TelnetAssembly: Jscape.Telnet (in Jscape.Telnet.dll) Version: 2.6.1.0
Syntax
Remarks
The timeout value is used to determine when a
task should abort if the prompt is not detected
within specified timeout.
Note: The timeout value set for a TelnetTask overrides the TelnetSession SessionTimeout property value. SessionTimeout for more information about setting the global timeout value for all tasks assigned to a TelnetSession.
Note: The timeout value set for a TelnetTask overrides the TelnetSession SessionTimeout property value. SessionTimeout for more information about setting the global timeout value for all tasks assigned to a TelnetSession.
Examples
This example sets the task timeout to 6 seconds.
The specified task will abort if not completed prior to the timeout expiration.
CopyTimeout
CopyTimeout

// set task timeout to 6 seconds myTask.Timeout = 6000;

' set task timeout to 6 seconds myTask.Timeout = 6000