Click or drag to resize

SshCommandBeginExecute(AsyncCallback, Object) Method

Begins an asynchronous command execution.

Namespace: Crestron.SimplSharp.Ssh
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public IAsyncResult BeginExecute(
	AsyncCallback? callback,
	Object? state
)

Parameters

callback  AsyncCallback
An optional asynchronous callback, to be called when the command execution is complete.
state  Object
A user-provided object that distinguishes this particular asynchronous read request from other requests.

Return Value

IAsyncResult
An IAsyncResult that represents the asynchronous command execution, which could still be pending.
Exceptions
ExceptionCondition
InvalidOperationExceptionAsynchronous operation is already in progress.
SshExceptionInvalid operation.
ArgumentExceptionCommandText property is empty.
SshConnectionExceptionClient is not connected.
SshOperationTimeoutExceptionOperation has timed out.
InvalidOperationExceptionAsynchronous operation is already in progress.
ArgumentExceptionCommandText property is empty.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also