语言

ChoiceFactory 类

定义

帮助设置包含选项列表的消息活动的格式。

public class ChoiceFactory
type ChoiceFactory = class
Public Class ChoiceFactory
继承
ChoiceFactory

构造函数

名称 说明
ChoiceFactory()

帮助设置包含选项列表的消息活动的格式。

方法

名称 说明
ForChannel(String, IList<Choice>, String, String, ChoiceFactoryOptions, String, IList<String>)

创建一个消息活动,其中包含基于给定通道的功能设置格式的选项列表。

ForChannel(String, IList<Choice>, String, String, ChoiceFactoryOptions)

创建一个消息活动,其中包含基于给定通道的功能设置格式的选项列表。

HeroCard(IList<Choice>, String, String)

创建包含已添加为 HeroCard“的选项列表的消息活动。

Inline(IList<Choice>, String, String, ChoiceFactoryOptions)

创建一个消息活动,其中包含格式为内联列表的选项列表。

List(IList<Choice>, String, String, ChoiceFactoryOptions)

创建包含已格式化为编号列表或项目符号列表的选项的邮件活动。

List(IList<String>, String, String, ChoiceFactoryOptions)

创建一个消息活动,其中包含格式为编号列表或项目符号列表的选项列表。

SuggestedAction(IList<Choice>, String, String, IList<String>)

创建一个消息活动,其中包含已添加为建议操作的选项列表。

SuggestedAction(IList<Choice>, String, String)

创建一个消息活动,其中包含已添加为建议操作的选项列表。

SuggestedAction(IList<String>, String, String, IList<String>)

创建一个消息活动,其中包含已添加为建议操作的选项列表。

SuggestedAction(IList<String>, String, String)

创建一个消息活动,其中包含已添加为建议操作的选项列表。

ToChoices(IList<String>)

取字符串列表并返回为 Choice。

适用于