PromptDialog.Number 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Number(IDialogContext, ResumeAfter<Double>, String, String, Int32, String, Nullable<Double>, Nullable<Double>)
- Source:
- PromptDialog.cs
提示输入双精度值。
public static void Number (Microsoft.Bot.Builder.Dialogs.IDialogContext context, Microsoft.Bot.Builder.Dialogs.ResumeAfter<double> resume, string prompt, string retry = default, int attempts = 3, string speak = default, double? min = default, double? max = default);
static member Number : Microsoft.Bot.Builder.Dialogs.IDialogContext * Microsoft.Bot.Builder.Dialogs.ResumeAfter<double> * string * string * int * string * Nullable<double> * Nullable<double> -> unit
Public Shared Sub Number (context As IDialogContext, resume As ResumeAfter(Of Double), prompt As String, Optional retry As String = Nothing, Optional attempts As Integer = 3, Optional speak As String = Nothing, Optional min As Nullable(Of Double) = Nothing, Optional max As Nullable(Of Double) = Nothing)
参数
- context
- IDialogContext
上下文。
- resume
- ResumeAfter<Double>
恢复处理程序。
- prompt
- String
向用户显示的提示。
- retry
- String
重试时显示的内容。
- attempts
- Int32
重试的次数。
- speak
- String
文本转语音) 的语音标记 (SSML 标记
适用于
Number(IDialogContext, ResumeAfter<Int64>, String, String, Int32, String, Nullable<Int64>, Nullable<Int64>)
- Source:
- PromptDialog.cs
提示输入较长时间。
public static void Number (Microsoft.Bot.Builder.Dialogs.IDialogContext context, Microsoft.Bot.Builder.Dialogs.ResumeAfter<long> resume, string prompt, string retry = default, int attempts = 3, string speak = default, long? min = default, long? max = default);
static member Number : Microsoft.Bot.Builder.Dialogs.IDialogContext * Microsoft.Bot.Builder.Dialogs.ResumeAfter<int64> * string * string * int * string * Nullable<int64> * Nullable<int64> -> unit
Public Shared Sub Number (context As IDialogContext, resume As ResumeAfter(Of Long), prompt As String, Optional retry As String = Nothing, Optional attempts As Integer = 3, Optional speak As String = Nothing, Optional min As Nullable(Of Long) = Nothing, Optional max As Nullable(Of Long) = Nothing)
参数
- context
- IDialogContext
上下文。
- resume
- ResumeAfter<Int64>
恢复处理程序。
- prompt
- String
向用户显示的提示。
- retry
- String
重试时显示的内容。
- attempts
- Int32
重试的次数。
- speak
- String
文本转语音) 的语音标记 (SSML 标记