Console.WebMode Property

 Console.WebMode  (read-only, WebModes)
 
The current mode of the console

Syntax

Console.WebMode

The property syntax has these parts:

Part Description
Value (WebModes) The current mode of the console

Remarks

Part of the virtual console feature for use with ACP web pages. This property can be tested in order to adjust an Active Server Page to display a Yes-No or text input form driven by Console.AskYesNo() or Console.ReadLine(). For more information on the Console object's virtual console feature, see the Console Class documentation.

Symbolic Constants

The (symbolic) values for WebModes are:

Constant Value Description
webAskYesNoDone 3 The web page console Yes/No input is done.
webAskYesNoWait 2 The web page console Yes/No input is waiting for user input.
webNormal 1 The web page console is not waiting and has no response info.
webReadLineDone 5 The web page console text input is done
webReadLineWait 4 The web page console text input is waiting for user input.