PromptDialog.Number 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Number(IDialogContext, ResumeAfter<Double>, String, String, Int32, String, Nullable<Double>, Nullable<Double>)
提示輸入雙精度浮點數。
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>)
提示輸入長。
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 標記