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>
對話方塊會以可評分值來增強。