Idioma

IEntityToType.TryMapToDateRanges Método

Definição

Tenta mapear as instâncias do LUIS EntityRecommendation para uma lista de DateTime intervalos, relativamente ao 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

A referência DateTimeatual a .

entities
IEnumerable<EntityRecommendation>

Uma lista de casos possivelmente relevantes EntityRecommendation .

ranges
IEnumerable<Range<DateTime>>

As variações de saída DateTime .

Devoluções

Verdade se o mapeamento pudesse ter sido bem-sucedido, falso caso contrário.

Aplica-se a