Gets/Sets the timeout in milliseconds for a running tasks to receive the expected end prompt. Default timeout is 120000ms (120 seconds).

Namespace: Jscape.Telnet
Assembly: Jscape.Telnet (in Jscape.Telnet.dll) Version: 2.6.1.0

Syntax

C#
public long Timeout { get; set; }
Visual Basic
Public Property Timeout As Long
	Get
	Set
Visual C++
public:
property long long Timeout {
	long long get ();
	void set (long long value);
}

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.

Examples

This example sets the task timeout to 6 seconds. The specified task will abort if not completed prior to the timeout expiration.
CopyTimeout
// set task timeout to 6 seconds
myTask.Timeout = 6000;

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

See Also