Share via


PromptDialog.PromptAttachment 构造函数

定义

提示附件对话框的构造函数。

public PromptAttachment (string prompt, string retry, int attempts, System.Collections.Generic.IEnumerable<string> contentTypes = default);
new Microsoft.Bot.Builder.Dialogs.PromptDialog.PromptAttachment : string * string * int * seq<string> -> Microsoft.Bot.Builder.Dialogs.PromptDialog.PromptAttachment
Public Sub New (prompt As String, retry As String, attempts As Integer, Optional contentTypes As IEnumerable(Of String) = Nothing)

参数

prompt
String

提示。

retry
String

重试时要显示的内容。

attempts
Int32

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

contentTypes
IEnumerable<String>

用于筛选附件的内容类型。 Null 表示任何内容类型。

适用于