Class ExpectAction
- Namespace
- Renci.SshNet
- Assembly
- Renci.SshNet.dll
Specifies behavior for expected expression.
public class ExpectActionInheritance
Inherited Members
Constructors
ExpectAction(Regex, Action<string>)
Initializes a new instance of the Renci.SshNet.ExpectAction class.
public ExpectAction(Regex expect, Action<string> action)Parameters
Exceptions
- ArgumentNullException
-
expectoractionis null.
ExpectAction(string, Action<string>)
Initializes a new instance of the Renci.SshNet.ExpectAction class.
public ExpectAction(string expect, Action<string> action)Parameters
Exceptions
- ArgumentNullException
-
expectoractionis null.
Properties
Action
Gets the action to perform when expected expression is found.
public Action<string> Action { get; }Property Value
Expect
Gets the expected regular expression.
public Regex Expect { get; }