Scorable.SelectItem<SourceItem,TargetItem,Score> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用 Lambda 運算式投影可評分的專案。
public static Microsoft.Bot.Builder.Scorables.IScorable<SourceItem,Score> SelectItem<SourceItem,TargetItem,Score> (this Microsoft.Bot.Builder.Scorables.IScorable<TargetItem,Score> scorable, Func<SourceItem,TargetItem> selector);
static member SelectItem : Microsoft.Bot.Builder.Scorables.IScorable<'argetItem, 'Score> * Func<'SourceItem, 'argetItem> -> Microsoft.Bot.Builder.Scorables.IScorable<'SourceItem, 'Score>
<Extension()>
Public Function SelectItem(Of SourceItem, TargetItem, Score) (scorable As IScorable(Of TargetItem, Score), selector As Func(Of SourceItem, TargetItem)) As IScorable(Of SourceItem, Score)
類型參數
- SourceItem
- TargetItem
- Score
參數
- scorable
- IScorable<TargetItem,Score>
- selector
- Func<SourceItem,TargetItem>
傳回
IScorable<SourceItem,Score>