ShellStreamExpect(Regex, TimeSpan) Method |
Expects the expression specified by regular expression.
Namespace: Crestron.SimplSharp.SshAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntaxpublic 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