Share via


ConversationsModelFactory.TemporalSpanResolution Method

Definition

Initializes a new instance of TemporalSpanResolution.

public static Azure.AI.Language.Conversations.Models.TemporalSpanResolution TemporalSpanResolution (string begin = default, string end = default, string duration = default, Azure.AI.Language.Conversations.Models.TemporalModifier? modifier = default, string timex = default);
static member TemporalSpanResolution : string * string * string * Nullable<Azure.AI.Language.Conversations.Models.TemporalModifier> * string -> Azure.AI.Language.Conversations.Models.TemporalSpanResolution
Public Shared Function TemporalSpanResolution (Optional begin As String = Nothing, Optional end As String = Nothing, Optional duration As String = Nothing, Optional modifier As Nullable(Of TemporalModifier) = Nothing, Optional timex As String = Nothing) As TemporalSpanResolution

Parameters

begin
String

represents the resolution of a date and/or time span. An extended ISO 8601 date/time representation as described in (https://github.com/Microsoft/Recognizers-Text/blob/master/Patterns/English/English-DateTime.yaml).

end
String

represents the resolution of a date and/or time span. An extended ISO 8601 date/time representation as described in (https://github.com/Microsoft/Recognizers-Text/blob/master/Patterns/English/English-DateTime.yaml).

duration
String

An optional duration value formatted based on the ISO 8601 (https://en.wikipedia.org/wiki/ISO_8601#Durations).

modifier
Nullable<TemporalModifier>

An optional modifier of a date/time instance.

timex
String

An optional triplet containing the beginning, the end, and the duration all stated as ISO 8601 formatted strings.

Returns

A new TemporalSpanResolution instance for mocking.

Applies to