Begins an asynchronous command execution. 22
Namespace: Renci.SshNetAssembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax
public IAsyncResult BeginExecute( string commandText, AsyncCallback callback, Object state )
Parameters
- commandText
- Type:
System String
The command text.
- callback
- Type:
System AsyncCallback
An optional asynchronous callback, to be called when the command execution is complete.
- state
- Type:
System Object
A user-provided object that distinguishes this particular asynchronous read request from other requests.
Return Value
AnExceptions
| Exception | Condition |
|---|---|
| Renci.SshNet.Common SshConnectionException | Client is not connected. |
| Renci.SshNet.Common SshOperationTimeoutException | Operation has timed out. |
See Also