Del via


AttachmentPrompt Constructor

Definition

Initializes a new instance of the AttachmentPrompt class.

public AttachmentPrompt(string dialogId, Microsoft.Agents.Builder.Dialogs.Prompts.PromptValidator<System.Collections.Generic.IList<Microsoft.Agents.Core.Models.Attachment>> validator = default);
new Microsoft.Agents.Builder.Dialogs.Prompts.AttachmentPrompt : string * Microsoft.Agents.Builder.Dialogs.Prompts.PromptValidator<System.Collections.Generic.IList<Microsoft.Agents.Core.Models.Attachment>> -> Microsoft.Agents.Builder.Dialogs.Prompts.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