Freigeben über


PromptDialog.Attachment Methode

Definition

Aufforderung zur Eingabe einer Anlage

public static void Attachment (Microsoft.Bot.Builder.Dialogs.IDialogContext context, Microsoft.Bot.Builder.Dialogs.ResumeAfter<System.Collections.Generic.IEnumerable<Microsoft.Bot.Connector.Attachment>> resume, string prompt, System.Collections.Generic.IEnumerable<string> contentTypes = default, string retry = default, int attempts = 3);
static member Attachment : Microsoft.Bot.Builder.Dialogs.IDialogContext * Microsoft.Bot.Builder.Dialogs.ResumeAfter<seq<Microsoft.Bot.Connector.Attachment>> * string * seq<string> * string * int -> unit
Public Shared Sub Attachment (context As IDialogContext, resume As ResumeAfter(Of IEnumerable(Of Attachment)), prompt As String, Optional contentTypes As IEnumerable(Of String) = Nothing, Optional retry As String = Nothing, Optional attempts As Integer = 3)

Parameter

context
IDialogContext

Der Dialogkontext.

resume
ResumeAfter<IEnumerable<Attachment>>

Fortsetzen des Handlers.

prompt
String

Die Eingabeaufforderung, die dem Benutzer angezeigt werden soll.

contentTypes
IEnumerable<String>

Die optionalen Inhaltstypen, zu der der Anlagentyp gehören soll

retry
String

Was bei Wiederholung angezeigt werden soll

attempts
Int32

Die Anzahl der Wiederholungsversuche

Gilt für: