Chain.WithScorable<T,Item,Score> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
用可得分物裝飾對話,讓該可得分者能參與對話堆疊。
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>
對話會隨著配樂來增強。