HtmlWindow.Prompt(String, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
显示向用户显示消息和文本框的对话框。
public:
System::String ^ Prompt(System::String ^ message, System::String ^ defaultInputValue);
public string Prompt(string message, string defaultInputValue);
public string? Prompt(string message, string defaultInputValue);
member this.Prompt : string * string -> string
Public Function Prompt (message As String, defaultInputValue As String) As String
参数
- message
- String
要向用户显示的消息。
- defaultInputValue
- String
文本框中显示的默认值。
返回
表示 String 用户输入的文本。
注解
Prompt 提供了一种从用户获取简单文本输入的快速简单方法。