Table of Contents

Method Ask

Namespace
Innova.Prism.Library.Services
Assembly
Innova.Prism.Library.dll

Ask(string)

Asks a question and returns a boolean value indicating the user's response.

bool Ask(string question)

Parameters

question string

The 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

question string

The question to ask.

title string

The title of the dialog.

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 string

The question to ask.

title string

The title of the dialog.

returnText string

The 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 string

The question to ask.

title string

The title of the dialog.

returnText string

The text returned by the user.

multiline bool

Indicates whether the dialog supports multiline input.

Returns

bool?

True if the user answers yes, otherwise false.