IEntityToType.TryMapToDateRanges 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 list of DateTime ranges, relative to now.
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
Parameters
- entities
- IEnumerable<EntityRecommendation>
A list of possibly-relevant EntityRecommendation instances.
- ranges
- IEnumerable<Range<DateTime>>
The output DateTime ranges.
Returns
True if the mapping may have been successful, false otherwise.