Dela via


AttachmentPrompt Konstruktor

Definition

Initierar en ny instans av AttachmentPrompt klassen.

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)

Parametrar

dialogId
String

Det ID som ska tilldelas till den här prompten.

validator
PromptValidator<IList<Attachment>>

Valfritt, en PromptValidator<T> som innehåller ytterligare anpassad validering för den här prompten.

Kommentarer

Värdet dialogId för måste vara unikt inom DialogSet eller ComponentDialog som prompten läggs till i.

Gäller för