Prompt<T>(String, PromptValidator<T>) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
public Prompt(string dialogId, Microsoft.Bot.Builder.Dialogs.PromptValidator<T> validator = default);
new Microsoft.Bot.Builder.Dialogs.Prompt<'T> : string * Microsoft.Bot.Builder.Dialogs.PromptValidator<'T> -> Microsoft.Bot.Builder.Dialogs.Prompt<'T>
Public Sub New (dialogId As String, Optional validator As PromptValidator(Of T) = Nothing)
參數
- dialogId
- String
要指派給這個提示的標識碼。
- validator
- PromptValidator<T>
選擇性的 PromptValidator<T>,其中包含此提示的其他自定義驗證。
備註
dialogId 的值在提示加入的 DialogSet 或 ComponentDialog 內必須是唯一的。