Console.Text Property

 Console.Text  (read-only, String)
 
The current textual contents of the console output window (default property)

Syntax

Console.Text

The property syntax has these parts:

Part Description
Value (String) The current textual contents of the console output window (default property)

Remarks

This oddball property actually has an optional parameter, lines, which specifies how many lines at the tail end of the console text to return. If omitted (normal usage) all lines are returned. Specifing "Console" without any property or method returns the entire contents of the console text window. This property is similar to Console.AllText except for the optional line count parameter.
Note: The console window holds only the last 30000 characters that were written via Console.PrintLine(). To recover the entire text of a session, enable console logging and access the log file (after the script completes and the log has been closed).