Occurs when an application writes to its redirected Process.StandardOutput stream.
The Process.OutputDataReceived event indicates that the associated System.Diagnostics.Process has written to its redirected Process.StandardOutput stream.
The event is enabled during asynchronous read operations on Process.StandardOutput. To start asynchronous read operations, you must redirect the Process.StandardOutput stream of a System.Diagnostics.Process, add your event handler to the Process.OutputDataReceived event, and call Process.BeginOutputReadLine. Thereafter, the Process.OutputDataReceived event signals each time the process writes a line to the redirected Process.StandardOutput stream, until the process exits or calls Process.CancelOutputRead.
The application that is processing the asynchronous output should call the Process.WaitForExit method to ensure that the output buffer has been flushed.