Scorable.TryReduce<Item,Score> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
試著簡化一份可評分的清單。
public static bool TryReduce<Item,Score>(ref System.Collections.Generic.IEnumerable<Microsoft.Bot.Builder.Scorables.IScorable<Item,Score>> scorables, out Microsoft.Bot.Builder.Scorables.IScorable<Item,Score> scorable);
static member TryReduce : seq * IScorable -> bool
Public Function TryReduce(Of Item, Score) (ByRef scorables As IEnumerable(Of IScorable(Of Item, Score)), ByRef scorable As IScorable(Of Item, Score)) As Boolean
類型參數
- Item
- Score
參數
- scorables
- IEnumerable<IScorable<Item,Score>>
簡化的可得分清單。
- scorable
- IScorable<Item,Score>
如果可能,代表該清單的單一評分。
傳回
若可評分清單可將可評分清單簡化為單一可評分,則為真;否則為假。