Begins an asynchronous command execution.
Namespace: Renci.SshNetAssembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax
public IAsyncResult BeginExecute( AsyncCallback callback, Object state )
Parameters
- 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 |
|---|---|
| Asynchronous operation is already in progress. | |
| Renci.SshNet.Common SshException | Invalid operation. |
| CommandText property is empty. | |
| Renci.SshNet.Common SshConnectionException | Client is not connected. |
| Renci.SshNet.Common SshOperationTimeoutException | Operation has timed out. |
| Asynchronous operation is already in progress. | |
| CommandText property is empty. |
See Also