Share via


PromptDialog.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)

参数

context
IDialogContext

对话框上下文。

resume
ResumeAfter<IEnumerable<Attachment>>

恢复处理程序。

prompt
String

向用户显示的提示。

contentTypes
IEnumerable<String>

附件类型应属于的可选内容类型

retry
String

重试时显示的内容

attempts
Int32

重试的次数

适用于