Gets/Sets the TelnetSession timeout in milliseconds for all running tasks to complete. 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 SessionTimeout { get; set; }
Visual Basic
Public Property SessionTimeout As Long
	Get
	Set
Visual C++
public:
property long long SessionTimeout {
	long long get ();
	void set (long long value);
}

Remarks

The TelnetSession timeout value is used to determine when tasks should abort if not completed within the specified timeout. The value is applied globally to each task. Timeout for more information about setting the timeout property for a specific task.

Examples

This example sets the TelnetSession timeout value to 6 seconds for all tasks assigned to this session.
CopySessionTimeout
// Set default session timeout to 6 seconds
session.SessionTimeout = 6000;

CopySessionTimeout
' Set default session timeout to 6 seconds
session.SessionTimeout = 6000

See Also