diff --git a/xml/System.Diagnostics/DataReceivedEventArgs.xml b/xml/System.Diagnostics/DataReceivedEventArgs.xml index d7c7426d138..6fc693c9575 100644 --- a/xml/System.Diagnostics/DataReceivedEventArgs.xml +++ b/xml/System.Diagnostics/DataReceivedEventArgs.xml @@ -114,7 +114,7 @@ Gets the line of characters that was written to a redirected output stream. - The line that was written by an associated to its redirected or stream. + The line that was written by an associated to its redirected or stream, or if the end of the stream has been reached. event indicates that the associated has written a line that's terminated with a newline (carriage return (CR), line feed (LF), or CR+LF) to its redirected stream. + The event is also raised when the end of the redirected stream is reached. In that case, the property of the event handler's is `null`. + The event only occurs during asynchronous read operations on . To start asynchronous read operations, you must redirect the stream of a , add your event handler to the event, and call . Thereafter, the event signals each time the process writes a line to the redirected stream, until the process exits or calls . > [!NOTE] @@ -3134,6 +3136,8 @@ If no main module is found, it could be because the process hasn't finished load ## Remarks The event indicates that the associated has written a line that's terminated with a newline (carriage return (CR), line feed (LF), or CR+LF) to its redirected stream. + The event is also raised when the end of the redirected stream is reached. In that case, the property of the event handler's is `null`. + The event is enabled during asynchronous read operations on . To start asynchronous read operations, you must redirect the stream of a , add your event handler to the event, and call . Thereafter, the event signals each time the process writes a line to the redirected stream, until the process exits or calls . > [!NOTE]