语言

ChoiceFactory.List 方法

定义

重载

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

创建包含编号或项目符号列表的选项列表的消息活动。

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

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

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

创建包含编号或项目符号列表的选项列表的消息活动。

public static Microsoft.Bot.Schema.Activity List(System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice> choices, string text = default, string speak = default, Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions options = default);
static member List : System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice> * string * string * Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions -> Microsoft.Bot.Schema.Activity
Public Shared Function List (choices As IList(Of Choice), Optional text As String = Nothing, Optional speak As String = Nothing, Optional options As ChoiceFactoryOptions = Nothing) As Activity

参数

choices
IList<Choice>

渲染选项列表。

text
String

可选,短信文本。

speak
String

可选,机器人在支持语音的频道上说出SSML文本。

options
ChoiceFactoryOptions

可选的格式选项,用于调整列表的渲染方式。

返回

一个有编号或项目符号列表选项的活动。

适用于

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

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

public static Microsoft.Bot.Schema.Activity List(System.Collections.Generic.IList<string> choices, string text = default, string speak = default, Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions options = default);
static member List : System.Collections.Generic.IList<string> * string * string * Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions -> Microsoft.Bot.Schema.Activity
Public Shared Function List (choices As IList(Of String), Optional text As String = Nothing, Optional speak As String = Nothing, Optional options As ChoiceFactoryOptions = Nothing) As Activity

参数

choices
IList<String>

要包括的选项列表。

text
String

可选,要发送的消息的文本。

speak
String

可选的是,机器人在支持语音的频道上说出的文本。

options
ChoiceFactoryOptions

可选的是,渲染为列表时可用的格式选项。

返回

创建消息活动。

适用于