Stderr Event
Fired when data (complete lines) come in through stderr.
Syntax
public event OnStderrHandler OnStderr; public delegate void OnStderrHandler(object sender, RshellStderrEventArgs e); public class RshellStderrEventArgs : EventArgs { public string Text { get; }
public byte[] TextB { get; } public bool EOL { get; } }
Public Event OnStderr As OnStderrHandler Public Delegate Sub OnStderrHandler(sender As Object, e As RshellStderrEventArgs) Public Class RshellStderrEventArgs Inherits EventArgs Public ReadOnly Property Text As String
Public ReadOnly Property TextB As Byte() Public ReadOnly Property EOL As Boolean End Class
Remarks
The Stderr event is fired every time the process on the remote host outputs a line in its error output. The incoming data is provided through the Text parameter.
EOL indicates whether the ErrEOL string was found on the end of Text or not. If the ErrEOL string was found then EOL is True, otherwise it is False.
When the error stream is closed by the server, a string containing only one NULL character is delivered through this event.