Console.WebButtons Property

 Console.WebButtons  (read-only, Buttons)
 
Buttons argument to Console.ReadLine() when in web mode

Syntax

Console.WebButtons

The property syntax has these parts:

Part Description
Value (Buttons) Buttons argument to Console.ReadLine() when in web mode

Remarks

Part of the virtual console feature for use with ACP web pages. Informs the ASP web page as to which button set to display for a Console.ReadLine() call. The ASP page has total discretion on how to display those buttons. For more information on the Console object's virtual console feature, see the Console Class documentation.

Symbolic Constants

The (symbolic) values for Buttons are:

Constant Value Description
consOkCancel 1 Show the OK and Cancel buttons.
consOkOnly 3 Show only the OK button.
consYesNo 2 Show the Yes and No buttons