PromptDialog.Text 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
Text(IDialogContext, ResumeAfter<String>, IPromptOptions<String>) |
Prompt for a string. |
Text(IDialogContext, ResumeAfter<String>, String, String, Int32) |
Prompt for a string. |
Text(IDialogContext, ResumeAfter<String>, IPromptOptions<String>)
- Source:
- PromptDialog.cs
Prompt for a string.
public static void Text (Microsoft.Bot.Builder.Dialogs.IDialogContext context, Microsoft.Bot.Builder.Dialogs.ResumeAfter<string> resume, Microsoft.Bot.Builder.Dialogs.IPromptOptions<string> promptOptions);
static member Text : Microsoft.Bot.Builder.Dialogs.IDialogContext * Microsoft.Bot.Builder.Dialogs.ResumeAfter<string> * Microsoft.Bot.Builder.Dialogs.IPromptOptions<string> -> unit
Public Shared Sub Text (context As IDialogContext, resume As ResumeAfter(Of String), promptOptions As IPromptOptions(Of String))
Parameters
- context
- IDialogContext
The context.
- resume
- ResumeAfter<String>
Resume handler.
- promptOptions
- IPromptOptions<String>
The options for the prompt, IPromptOptions<T>.
Applies to
Text(IDialogContext, ResumeAfter<String>, String, String, Int32)
- Source:
- PromptDialog.cs
Prompt for a string.
public static void Text (Microsoft.Bot.Builder.Dialogs.IDialogContext context, Microsoft.Bot.Builder.Dialogs.ResumeAfter<string> resume, string prompt, string retry = default, int attempts = 3);
static member Text : Microsoft.Bot.Builder.Dialogs.IDialogContext * Microsoft.Bot.Builder.Dialogs.ResumeAfter<string> * string * string * int -> unit
Public Shared Sub Text (context As IDialogContext, resume As ResumeAfter(Of String), prompt As String, Optional retry As String = Nothing, Optional attempts As Integer = 3)
Parameters
- context
- IDialogContext
The context.
- resume
- ResumeAfter<String>
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.