Table of Contents

Class ExpectAction

Namespace
Renci.SshNet
Assembly
Renci.SshNet.dll

Specifies behavior for expected expression.

public class ExpectAction

Inheritance

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

expect Regex

The expect regular expression.

action Action<string>

The action to perform.

Exceptions

ArgumentNullException

expect or action is null.

ExpectAction(string, Action<string>)

Initializes a new instance of the Renci.SshNet.ExpectAction class.

public ExpectAction(string expect, Action<string> action)

Parameters

expect string

The expect expression.

action Action<string>

The action to perform.

Exceptions

ArgumentNullException

expect or action is null.

Properties

Action

Gets the action to perform when expected expression is found.

public Action<string> Action { get; }

Property Value

Action<string>

Expect

Gets the expected regular expression.

public Regex Expect { get; }

Property Value

Regex