IEntityToType.TryMapToTimeSpan Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Try to map LUIS EntityRecommendation instances to a TimeSpan, relative to now.
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
Parameters
- entities
- IEnumerable<EntityRecommendation>
A list of possibly-relevant EntityRecommendation instances.
Returns
True if the mapping may have been successful, false otherwise.