EndExecute() публичный Метод

Waits for the pending asynchronous command execution to complete.
Either the IAsyncResult object did not come from the corresponding async method on this type, or EndExecute was called multiple times with the same IAsyncResult. is null.
public EndExecute ( IAsyncResult asyncResult ) : string
asyncResult IAsyncResult The reference to the pending asynchronous request to finish.
Результат string
Пример #1
0
 /// <summary>
 /// Waits for the pending asynchronous command execution to complete.
 /// </summary>
 /// <param name="asyncResult">The reference to the pending asynchronous request to finish.</param>
 /// <returns>Command execution result.</returns>
 public string EndExecute(IAsyncResult asyncResult)
 {
     return(_sshCommand.EndExecute(asyncResult));
 }