語言

AttachmentPrompt 建構函式

定義

初始化 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 內必須是唯一的。

適用於