The Scripting type exposes the following members.

Methods

  NameDescription
Public methodSupported by the .NET Compact FrameworkClose
Closes the connection to the server.
Public methodSupported by the .NET Compact FrameworkDetectPrompt
Detects the prompt which the server currently uses and sets the Prompt property.
Public methodSupported by the .NET Compact FrameworkEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetHashCode
Serves as a hash function for a particular type. GetHashCode()()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkCheckFor(ScriptEvent)
Checks whether the specified condition is currently met.
Public methodSupported by the .NET Compact FrameworkCheckFor(array<ScriptEvent>[]()[][])
Checks whether the specified conditions are currently met. The events are processed as if the OR operator was applied.
Public methodSupported by the .NET Compact FrameworkKeepAlive
Sends a keep alive packet (NOOP) to the server.
Protected methodSupported by the .NET Compact FrameworkMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkProcess()()()()
Processes response from the server. If no data is available to be received, waits until the Timeout interval expires.
Public methodSupported by the .NET Compact FrameworkProcess(Int32)
Processes response from the server. If no data is available to be received, waits until the specified interval expires.
Public methodSupported by the .NET Compact FrameworkReadChar
Receives a printable character from the server.
Public methodSupported by the .NET Compact FrameworkReadLine
Receives response from the server until an end-of-line sequence is received.
Public methodSupported by the .NET Compact FrameworkReadUntil(ScriptEvent)
Receives response from the server until the specified condition is met.
Public methodSupported by the .NET Compact FrameworkReadUntil(array<ScriptEvent>[]()[][])
Reads the response from previously sent command until the criteria are met. The events are processed as if the OR operator was applied.
Public methodSupported by the .NET Compact FrameworkReadUntilPrompt
Receives response from the server until the Prompt is received.
Public methodSupported by the .NET Compact FrameworkSend(String)
Sends text to the server.
Public methodSupported by the .NET Compact FrameworkSend(ConsoleKeyInfo)
Sends a key to the server. This is used for sending simple keys or combinations such as Ctrl+C.
Public methodSupported by the .NET Compact FrameworkSend(FunctionKey)
Sends a key to the server. This is used for sending function keys such as Enter or F10.
Public methodSupported by the .NET Compact FrameworkSend(ConsoleKey, ConsoleModifiers)
Sends a key to the server.
Public methodSupported by the .NET Compact FrameworkSend(FunctionKey, ConsoleModifiers)
Sends a key to the server.
Public methodSupported by the .NET Compact FrameworkSendBreak
Sends a break request to the server. This may or may not have an effect, depending on the server. Sending Ctrl+C using Send(ConsoleKey, ConsoleModifiers) is usually more reliable.
Public methodSupported by the .NET Compact FrameworkSendCommand
Sends a command to the server and waits for the server to accept it.
Public methodSupported by the .NET Compact FrameworkSendData
Sends raw data to the server.
Public methodSupported by the .NET Compact FrameworkToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkWaitFor(ScriptEvent)
Receives response from the server until a condition is met.
Public methodSupported by the .NET Compact FrameworkWaitFor(array<ScriptEvent>[]()[][])
Processes response from the server until a condition is met. The events are processed as if the OR operator was applied.

Properties

  NameDescription
Public propertySupported by the .NET Compact FrameworkAutoMatchPrompt
Gets or sets whether to automatically match prompt in WaitFor(ScriptEvent), ReadUntil(ScriptEvent), ReadUntilPrompt()()()(), ReadLine()()()(), ReadChar()()()() and CheckFor(ScriptEvent) methods. Default value is false.
Public propertySupported by the .NET Compact FrameworkFinalExitCode
Gets the exit code of the receiving channel when the connection was closed.
Public propertySupported by the .NET Compact FrameworkHoldReceivedData
Gets or sets a value indicating whether to hold received data in DataReceived()()()() property. Default value is true.
Public propertySupported by the .NET Compact FrameworkLastResult
Gets the result of last called ReadUntilPrompt()()()(), ReadLine()()()(), ReadChar()()()() or ReadUntil(ScriptEvent) method. Please note that calling other scripting methods reset this to null.
Public propertySupported by the .NET Compact FrameworkPrompt
Gets or sets the sequence that is used to detect command prompt. To use regular expressions, prepend the string with "regex:". To use wildcards, prepend the string with "mask:". Prompt sequence is used by ReadUntilPrompt()()()() method (and other methods if Prompt is specified). To detect the current prompt automatically , use DetectPrompt()()()() method.
Public propertySupported by the .NET Compact FrameworkReceivedData
Gets data received since the previous data-receiving method. If HoldReceivedData is set to false, this returns null.
Public propertySupported by the .NET Compact FrameworkTerminal
Gets the containing terminal object.
Public propertySupported by the .NET Compact FrameworkTimeout
Gets or sets the timeout for receiving data in milliseconds. Default value is one minute.
Public propertySupported by the .NET Compact FrameworkTrimReadUntilResponse
Gets or sets a value indicating whether ReadUntilPrompt()()()(), ReadLine()()()(), ReadChar()()()() and ReadUntil(ScriptEvent) methods remove the prompt or end-of-line from the returned value. Default value is true.

See Also