IEntityToType.TryMapToTimeSpan 方法

定义

尝试将 LUIS EntityRecommendation 实例映射到 TimeSpan,相对于现在。

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

参数

now
DateTime

现在引用 DateTime

entities
IEnumerable<EntityRecommendation>

可能相关的 EntityRecommendation 实例的列表。

span
TimeSpan

输出 TimeSpan

返回

如果映射可能成功,则为 True;否则为 false。

适用于