InputDialog.AppendChoices 方法

定义

重载

AppendChoices(IMessageActivity, String, IList<Choice>, ListStyle, ChoiceFactoryOptions, CancellationToken)

AppendChoices 是一种实用工具方法,用于在给定所有选项的情况下生成消息活动。

AppendChoices(IMessageActivity, String, IList<Choice>, ListStyle, ChoiceFactoryOptions, String, IList<String>, CancellationToken)

AppendChoices 是一种实用工具方法,用于在给定所有选项的情况下生成消息活动。

AppendChoices(IMessageActivity, String, IList<Choice>, ListStyle, ChoiceFactoryOptions, CancellationToken)

AppendChoices 是一种实用工具方法,用于在给定所有选项的情况下生成消息活动。

protected virtual Microsoft.Bot.Schema.IMessageActivity AppendChoices (Microsoft.Bot.Schema.IMessageActivity prompt, string channelId, System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice> choices, Microsoft.Bot.Builder.Dialogs.Choices.ListStyle style, Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AppendChoices : Microsoft.Bot.Schema.IMessageActivity * string * System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice> * Microsoft.Bot.Builder.Dialogs.Choices.ListStyle * Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions * System.Threading.CancellationToken -> Microsoft.Bot.Schema.IMessageActivity
override this.AppendChoices : Microsoft.Bot.Schema.IMessageActivity * string * System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice> * Microsoft.Bot.Builder.Dialogs.Choices.ListStyle * Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions * System.Threading.CancellationToken -> Microsoft.Bot.Schema.IMessageActivity
Protected Overridable Function AppendChoices (prompt As IMessageActivity, channelId As String, choices As IList(Of Choice), style As ListStyle, Optional options As ChoiceFactoryOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As IMessageActivity

参数

prompt
IMessageActivity

提示。

channelId
String

channelId。

choices
IList<Choice>

要演示的选项。

style
ListStyle

listType。

options
ChoiceFactoryOptions

用于控制选项呈现的选项。

cancellationToken
CancellationToken

取消令牌。

返回

绑定活动已准备好发送给用户。

适用于

AppendChoices(IMessageActivity, String, IList<Choice>, ListStyle, ChoiceFactoryOptions, String, IList<String>, CancellationToken)

AppendChoices 是一种实用工具方法,用于在给定所有选项的情况下生成消息活动。

protected virtual Microsoft.Bot.Schema.IMessageActivity AppendChoices (Microsoft.Bot.Schema.IMessageActivity prompt, string channelId, System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice> choices, Microsoft.Bot.Builder.Dialogs.Choices.ListStyle style, Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions options = default, string conversationType = default, System.Collections.Generic.IList<string> toList = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AppendChoices : Microsoft.Bot.Schema.IMessageActivity * string * System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice> * Microsoft.Bot.Builder.Dialogs.Choices.ListStyle * Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions * string * System.Collections.Generic.IList<string> * System.Threading.CancellationToken -> Microsoft.Bot.Schema.IMessageActivity
override this.AppendChoices : Microsoft.Bot.Schema.IMessageActivity * string * System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice> * Microsoft.Bot.Builder.Dialogs.Choices.ListStyle * Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions * string * System.Collections.Generic.IList<string> * System.Threading.CancellationToken -> Microsoft.Bot.Schema.IMessageActivity
Protected Overridable Function AppendChoices (prompt As IMessageActivity, channelId As String, choices As IList(Of Choice), style As ListStyle, Optional options As ChoiceFactoryOptions = Nothing, Optional conversationType As String = Nothing, Optional toList As IList(Of String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As IMessageActivity

参数

prompt
IMessageActivity

提示。

channelId
String

channelId。

choices
IList<Choice>

要演示的选项。

style
ListStyle

listType。

options
ChoiceFactoryOptions

用于控制选项呈现的选项。

conversationType
String

会话的类型。

toList
IList<String>

收件人列表。

cancellationToken
CancellationToken

取消令牌。

返回

绑定活动已准备好发送给用户。

适用于