The TelnetTask class represents a command to be executed in batch (non-interactive) mode.

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

Syntax

C#
[SerializableAttribute]
public class TelnetTask
Visual Basic
<SerializableAttribute> _
Public Class TelnetTask
Visual C++
[SerializableAttribute]
public ref class TelnetTask

Examples

The first example creates a TelnetTask that waits for start prompt "login:", sends data "jsmith" and waits for end prompt "Password:" before ending. The second example creates a TelnetTask with a name of "passwordPrompt", waits for start prompt "Password:", sends data "secret" and waits for end prompt "$" before ending.
CopyC#
TelnetTask username = new TelnetTask("login:","jsmith","Password:");
CopyC#
TelnetTask password = new TelnetTask("passwordPrompt","Password:","secret","$");

CopyVB.NET
Dim username As TelnetTask = new TelnetTask("login:","jsmith","Password:")
CopyVB.NET
Dim username As TelnetTask = new TelnetTask("passwordPrompt","Password:","secret","$")

Inheritance Hierarchy

System..::..Object
  Jscape.Telnet..::..TelnetTask

See Also