SecureBlackbox Lite 2020 .NET Edition

Questions / Feedback?

CommandCompleted Event

Signifies completion of the command execution.

Syntax

public event OnCommandCompletedHandler OnCommandCompleted;

public delegate void OnCommandCompletedHandler(object sender, SshclientCommandCompletedEventArgs e);

public class SshclientCommandCompletedEventArgs : EventArgs {
  public string Command { get; }
  public int ExitStatus { get; }
  public string ExitMessage { get; }
  public string ExitSignal { get; }
}
Public Event OnCommandCompleted As OnCommandCompletedHandler

Public Delegate Sub OnCommandCompletedHandler(sender As Object, e As SshclientCommandCompletedEventArgs)

Public Class SshclientCommandCompletedEventArgs Inherits EventArgs
  Public ReadOnly Property Command As String
  Public ReadOnly Property ExitStatus As Integer
  Public ReadOnly Property ExitMessage As String
  Public ReadOnly Property ExitSignal As String
End Class

Remarks

Subscribe to this event to be notified about completion of the remote command execution. This event fires for every commandin the Commands list. The Command parameter indicates the command being completed.

ExitStatus specifies the command's return code. ExitMessage or ExitSignal parameters provide error details if the command execution was terminated forcefully,

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox Lite 2020 .NET Edition - Version 20.0 [Build 8166]