Share via


IEntityToType.TryMapToDateRanges Method

Definition

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

now
DateTime

The now reference DateTime.

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.

Applies to