Console.LastReadResult Property

 Console.LastReadResult  (read-only, String)
 
The text result of the last Console.ReadLine().

Syntax

Console.LastReadResult

The property syntax has these parts:

Part Description
Value (String) The text result of the last Console.ReadLine().

Remarks

The Console.ReadLine() method returns an answer corresponding to which of a set of buttons on the console was used to complete the read. At that point, the text from the console's input field is available via this property. This is also available for web-based ASP forms which interact with the console. For more information on the Console virtual form feature, see the Console Class documentation.