語言

ChoiceSet 類別

定義

定義 ChoiceSet 集合。

public class ChoiceSet : System.Collections.Generic.List<Microsoft.Bot.Builder.Dialogs.Choices.Choice>, Microsoft.Bot.Builder.Dialogs.ITemplate<Microsoft.Bot.Builder.Dialogs.Adaptive.Input.ChoiceSet>
type ChoiceSet = class
    inherit List<Choice>
    interface ITemplate<ChoiceSet>
Public Class ChoiceSet
Inherits List(Of Choice)
Implements ITemplate(Of ChoiceSet)
繼承
ChoiceSet
實作

建構函式

名稱 Description
ChoiceSet()

初始化 ChoiceSet 類別的新執行個體。

ChoiceSet(IEnumerable<Choice>)

初始化 ChoiceSet 類別的新執行個體。

ChoiceSet(Object)

初始化 ChoiceSet 類別的新執行個體。

方法

名稱 Description
BindAsync(DialogContext, Object, CancellationToken)

給定回合上下文綁定到資料,建立型態為 T 的物件。

操作員

名稱 Description
Implicit(Boolean to ChoiceSet)

將布爾數轉換成 ChoiceSet.

Implicit(JToken to ChoiceSet)

將 a Newtonsoft.Json.Linq.JToken 轉換成 ChoiceSet。

Implicit(String to ChoiceSet)

將字串 ChoiceSet轉換為 。

擴充方法

名稱 Description
Dequeue<T>(List<T>)

移除佇列的第一個元素。

適用於