PromptDialog.Confirm Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Confirm(IDialogContext, ResumeAfter<Boolean>, IPromptOptions<String>, String[][]) |
Ask a yes/no questions. |
Confirm(IDialogContext, ResumeAfter<Boolean>, String, String, Int32, PromptStyle, String[], String[][]) |
Ask a yes/no question. |
Confirm(IDialogContext, ResumeAfter<Boolean>, IPromptOptions<String>, String[][])
- Source:
- PromptDialog.cs
Ask a yes/no questions.
public static void Confirm (Microsoft.Bot.Builder.Dialogs.IDialogContext context, Microsoft.Bot.Builder.Dialogs.ResumeAfter<bool> resume, Microsoft.Bot.Builder.Dialogs.IPromptOptions<string> promptOptions, string[][] patterns = default);
static member Confirm : Microsoft.Bot.Builder.Dialogs.IDialogContext * Microsoft.Bot.Builder.Dialogs.ResumeAfter<bool> * Microsoft.Bot.Builder.Dialogs.IPromptOptions<string> * string[][] -> unit
Public Shared Sub Confirm (context As IDialogContext, resume As ResumeAfter(Of Boolean), promptOptions As IPromptOptions(Of String), Optional patterns As String()() = Nothing)
Parameters
- context
- IDialogContext
The dialog context.
- resume
- ResumeAfter<Boolean>
Resume handler.
- promptOptions
- IPromptOptions<String>
The options for the prompt, IPromptOptions<T>.
- patterns
- String[][]
Yes and no alternatives for matching input where first dimension is either Yes or No and the arrays are alternative strings to match.
Applies to
Confirm(IDialogContext, ResumeAfter<Boolean>, String, String, Int32, PromptStyle, String[], String[][])
- Source:
- PromptDialog.cs
Ask a yes/no question.
public static void Confirm (Microsoft.Bot.Builder.Dialogs.IDialogContext context, Microsoft.Bot.Builder.Dialogs.ResumeAfter<bool> resume, string prompt, string retry = default, int attempts = 3, Microsoft.Bot.Builder.Dialogs.PromptStyle promptStyle = Microsoft.Bot.Builder.Dialogs.PromptStyle.Auto, string[] options = default, string[][] patterns = default);
static member Confirm : Microsoft.Bot.Builder.Dialogs.IDialogContext * Microsoft.Bot.Builder.Dialogs.ResumeAfter<bool> * string * string * int * Microsoft.Bot.Builder.Dialogs.PromptStyle * string[] * string[][] -> unit
Public Shared Sub Confirm (context As IDialogContext, resume As ResumeAfter(Of Boolean), prompt As String, Optional retry As String = Nothing, Optional attempts As Integer = 3, Optional promptStyle As PromptStyle = Microsoft.Bot.Builder.Dialogs.PromptStyle.Auto, Optional options As String() = Nothing, Optional patterns As String()() = Nothing)
Parameters
- context
- IDialogContext
The context.
- resume
- ResumeAfter<Boolean>
Resume handler.
- prompt
- String
The prompt to show to the user.
- retry
- String
What to show on retry.
- attempts
- Int32
The number of times to retry.
- promptStyle
- PromptStyle
Style of the prompt PromptStyle
- options
- String[]
Button labels for yes/no choices.
- patterns
- String[][]
Yes and no alternatives for matching input where first dimension is either Yes or No and the arrays are alternative strings to match.