IEntityToType.TryMapToTimeSpan 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
尝试将 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
参数
- entities
- IEnumerable<EntityRecommendation>
可能相关的 EntityRecommendation 实例的列表。
返回
如果映射可能成功,则为 True;否则为 false。