Share via


AttachmentPrompt Constructor

Definition

Initializes a new instance of the AttachmentPrompt class.

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)

Parameters

dialogId
String

The ID to assign to this prompt.

validator
PromptValidator<IList<Attachment>>

Optional, a PromptValidator<T> that contains additional, custom validation for this prompt.

Remarks

The value of dialogId must be unique within the DialogSet or ComponentDialog to which the prompt is added.

Applies to