Console..::..ReadLine Method (String, String)
ReadLine uses the native JavaScript prompt() to dialog with an optional message prompting the user to input some text.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public static string ReadLine( string text, string value )
<TemplateAttribute> _ Public Shared Function ReadLine ( _ text As String, _ value As String _ ) As String
[TemplateAttribute] public: static String^ ReadLine( String^ text, String^ value )
Parameters
- text
- Type: System..::..String
text is a string of text to display to the user. This parameter is optional and can be omitted if there is nothing to show in the prompt window.
- value
- Type: System..::..String
value is a string containing the default value displayed in the text input field. It is an optional parameter. Note that in Internet Explorer 7 and 8, if you do not provide this parameter, the string "undefined" is the default value.