Click or drag to resize

ShellStreamExpect(Regex, TimeSpan) Method

Expects the expression specified by regular expression.

Namespace: Crestron.SimplSharp.Ssh
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public string Expect(
	Regex regex,
	TimeSpan timeout
)

Parameters

regex  Regex
The regular expression to expect.
timeout  TimeSpan
Time to wait for input.

Return Value

String
Text available in the shell that contains all the text that ends with expected expression, if the specified time elapsed returns null.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also