Reads the response from previously sent command until the criteria are met. The events are processed as if the OR operator was applied.
Namespace:
Rebex.TerminalEmulation
Assembly:
Rebex.Terminal (in Rebex.Terminal.dll)
Syntax
Visual Basic |
---|
Public Function ReadUntil ( _ ParamArray events As ScriptEvent() _ ) As String |
C# |
---|
public string ReadUntil( params ScriptEvent[] events ) |
Parameters
- events
- Type: array<Rebex.TerminalEmulation..::..ScriptEvent>[]()[][]
Criteria to be met.
Return Value
Response of the previously sent command until the criteria are met. If ScriptEvent.Timeout was not set, it can throw timeout exception if the criteria are not met.Remarks
If TrimReadUntilResponse property is set to true, the prompt sequence is removed from the returned value if it was one of the specified conditions.