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