TraitsScorable<Item,Score> 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
public sealed class TraitsScorable<Item,Score> : Microsoft.Bot.Builder.Scorables.Internals.DelegatingFoldScorable<Item,Score>
type TraitsScorable<'Item, 'Score> = class
inherit DelegatingFoldScorable<'Item, 'Score>
Public NotInheritable Class TraitsScorable(Of Item, Score)
Inherits DelegatingFoldScorable(Of Item, Score)
類型參數
- Item
- Score
- 繼承
-
TraitsScorable<Item,Score>
建構函式
| 名稱 | Description |
|---|---|
| TraitsScorable<Item,Score>(ITraits<Score>, IComparer<Score>, IEnumerable<IScorable<Item,Score>>) | |
欄位
| 名稱 | Description |
|---|---|
| comparer | (繼承來源 FoldScorable<Item,Score>) |
| scorables | (繼承來源 FoldScorable<Item,Score>) |
屬性
| 名稱 | Description |
|---|---|
| OnStage | (繼承來源 DelegatingFoldScorable<Item,Score>) |
方法
明確介面實作
擴充方法
| 名稱 | Description |
|---|---|
| SelectItem<SourceItem,TargetItem,Score>(IScorable<TargetItem,Score>, Func<SourceItem,TargetItem>) |
Project 評分項目使用 lambda 表達式。 |
| SelectScore<Item,SourceScore,TargetScore>(IScorable<Item,SourceScore>, Func<Item,SourceScore,TargetScore>) |
Project 使用 lambda 運算式來預測可評分的分數。 |
| TryPostAsync<Item,Score>(IScorable<Item,Score>, Item, CancellationToken) |
對單一可評分的呼叫協議執行可評分協議。 |
| WhereScore<Item,Score>(IScorable<Item,Score>, Func<Item,Score,Boolean>) | |