Język

IEntityToType.TryMapToDateRanges Metoda

Definicja

Spróbuj odwzorować instancje LUIS EntityRecommendation na listę zakresów DateTime względem obecności.

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

Parametry

now
DateTime

Obecne odniesienie DateTime.

entities
IEnumerable<EntityRecommendation>

Lista potencjalnie istotnych EntityRecommendation przypadków.

ranges
IEnumerable<Range<DateTime>>

Zakres wyjściowy DateTime jest różny.

Zwraca

Prawda, jeśli mapowanie mogło się powiodować, fałszywe w przeciwnym przypadku.

Dotyczy