语言

Chain.WithScorable<T,Item,Score> 方法

定义

用可得分物品装饰对话,使可得分者能参与对话栈。

public static Microsoft.Bot.Builder.Dialogs.IDialog<T> WithScorable<T,Item,Score>(this Microsoft.Bot.Builder.Dialogs.IDialog<T> antecedent, Microsoft.Bot.Builder.Scorables.IScorable<Item,Score> scorable);
static member WithScorable : Microsoft.Bot.Builder.Dialogs.IDialog<'T> * Microsoft.Bot.Builder.Scorables.IScorable<'Item, 'Score> -> Microsoft.Bot.Builder.Dialogs.IDialog<'T>
<Extension()>
Public Function WithScorable(Of T, Item, Score) (antecedent As IDialog(Of T), scorable As IScorable(Of Item, Score)) As IDialog(Of T)

类型参数

T

对话的类型。

Item

评分者所评分的题目类型。

Score

评分者所生产的示波器类型。

参数

antecedent
IDialog<T>

前置对话。

scorable
IScorable<Item,Score>

得分。

返回

IDialog<T>

对话内容会随着评分内容的补充。

适用于