Lenguaje

IEntityToType.TryMapToDateRanges Método

Definición

Intenta mapear las instancias de LUIS EntityRecommendation a una lista de DateTime rangos, en relación con el presente.

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

Parámetros

now
DateTime

La referencia DateTimeactual a .

entities
IEnumerable<EntityRecommendation>

Una lista de casos posiblemente relevantes EntityRecommendation .

ranges
IEnumerable<Range<DateTime>>

Los rangos de salida DateTime .

Devoluciones

Cierto si el mapeo pudo haber tenido éxito, falso en caso contrario.

Se aplica a