PromptDialog.Attachment Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Prompt for an attachment
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)
Parameters
- context
- IDialogContext
The dialog context.
- resume
- ResumeAfter<IEnumerable<Attachment>>
Resume handler.
- prompt
- String
The prompt to show to the user.
- contentTypes
- IEnumerable<String>
The optional content types the attachment type should be part of
- retry
- String
What to show on retry
- attempts
- Int32
The number of times to retry