StrictEntityToType.Interpret 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
解讀解析後的 DateTimeResolution 以提供一系列 DateTime 範圍
public static System.Collections.Generic.IEnumerable<Microsoft.Bot.Builder.Internals.Fibers.Range<DateTime>> Interpret(Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution resolution, DateTime now, System.Globalization.Calendar calendar, System.Globalization.CalendarWeekRule rule, DayOfWeek firstDayOfWeek, Func<Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DayPart,int> HourFor);
static member Interpret : Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution * DateTime * System.Globalization.Calendar * System.Globalization.CalendarWeekRule * DayOfWeek * Func<Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DayPart, int> -> seq<Microsoft.Bot.Builder.Internals.Fibers.Range<DateTime>>
Public Shared Iterator Function Interpret (resolution As BuiltIn.DateTime.DateTimeResolution, now As DateTime, calendar As Calendar, rule As CalendarWeekRule, firstDayOfWeek As DayOfWeek, HourFor As Func(Of BuiltIn.DateTime.DayPart, Integer)) As IEnumerable(Of Range(Of DateTime))
參數
- resolution
- BuiltIn.DateTime.DateTimeResolution
從 LUIS 回應解析出的 DateTimeResolution。
- now
- DateTime
「現在」的參考點。
- calendar
- Calendar
用來計算日期的日曆。
- rule
- CalendarWeekRule
日曆週規則用於日期數學。
- firstDayOfWeek
- DayOfWeek
一週的第一天用於約會數學。
- HourFor
- Func<BuiltIn.DateTime.DayPart,Int32>
對應於列舉的時刻 BuiltIn.DateTime.DayPart 。
傳回
可能是無限多段的日期時間範圍。