Method Ask
Ask(string)
Asks a question and returns a boolean value indicating the user's response.
bool Ask(string question)
Parameters
question
stringThe question to ask.
Returns
- bool
True if the user answers yes, otherwise false.
Ask(string, string)
Asks a question with the specified title and returns a boolean value indicating the user's response.
bool Ask(string question, string title)
Parameters
Returns
- bool
True if the user answers yes, otherwise false.
Ask(string, string, out string)
Asks a question with the specified title and returns a boolean value indicating the user's response.
bool? Ask(string question, string title, out string returnText)
Parameters
question
stringThe question to ask.
title
stringThe title of the dialog.
returnText
stringThe text returned by the user.
Returns
- bool?
True if the user answers yes, otherwise false.
Ask(string, string, out string, bool)
Asks a question with the specified title and returns a boolean value indicating the user's response.
bool? Ask(string question, string title, out string returnText, bool multiline = true)
Parameters
question
stringThe question to ask.
title
stringThe title of the dialog.
returnText
stringThe text returned by the user.
multiline
boolIndicates whether the dialog supports multiline input.
Returns
- bool?
True if the user answers yes, otherwise false.