Delen via


AttachmentPrompt Constructor

Definitie

Initialiseert een nieuw exemplaar van de AttachmentPrompt klasse.

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

De id die aan deze prompt moet worden toegewezen.

validator
PromptValidator<IList<Attachment>>

Optioneel, een PromptValidator<T> met aanvullende, aangepaste validatie voor deze prompt.

Opmerkingen

De waarde van dialogId moet uniek zijn binnen de DialogSet of ComponentDialog waaraan de prompt wordt toegevoegd.

Van toepassing op