語言

IEntityToType.TryMapToDateRanges 方法

定義

試著將 LUIS EntityRecommendation 實例對應到一個相對於現在的範圍清單 DateTime 。

public bool TryMapToDateRanges(DateTime now, System.Collections.Generic.IEnumerable<Microsoft.Bot.Builder.Luis.Models.EntityRecommendation> entities, out System.Collections.Generic.IEnumerable<Microsoft.Bot.Builder.Internals.Fibers.Range<DateTime>> ranges);
abstract member TryMapToDateRanges : DateTime * seq<Microsoft.Bot.Builder.Luis.Models.EntityRecommendation> * seq -> bool
Public Function TryMapToDateRanges (now As DateTime, entities As IEnumerable(Of EntityRecommendation), ByRef ranges As IEnumerable(Of Range(Of DateTime))) As Boolean

參數

now
DateTime

現在的參考 DateTime。

entities
IEnumerable<EntityRecommendation>

以下是可能相關的 EntityRecommendation 案例清單。

ranges
IEnumerable<Range<DateTime>>

輸出 DateTime 範圍。

傳回

若映射可能成功,則為真;否則為假。

適用於