共用方式為


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 在 或 ComponentDialog 中必須是唯 DialogSet 一的,否則會新增提示。

適用於