DateTimeRange Constructors

Definition

Overloads

DateTimeRange(TimeSpan)

Initializes an instance of DateTimeRange using a duration value. The exact query range would be determined by the service when executing the query.

DateTimeRange(DateTimeOffset, DateTimeOffset)

Initializes an instance of DateTimeRange using a start time and an end time.

DateTimeRange(DateTimeOffset, TimeSpan)

Initializes an instance of DateTimeRange using a start time and a duration value.

DateTimeRange(TimeSpan, DateTimeOffset)

Initializes an instance of DateTimeRange using a duration and an end time.

DateTimeRange(TimeSpan)

Initializes an instance of DateTimeRange using a duration value. The exact query range would be determined by the service when executing the query.

public DateTimeRange (TimeSpan duration);
new Azure.Core.DateTimeRange : TimeSpan -> Azure.Core.DateTimeRange
Public Sub New (duration As TimeSpan)

Parameters

duration
System.TimeSpan

The duration of the range.

Applies to

DateTimeRange(DateTimeOffset, DateTimeOffset)

Initializes an instance of DateTimeRange using a start time and an end time.

public DateTimeRange (DateTimeOffset start, DateTimeOffset end);
new Azure.Core.DateTimeRange : DateTimeOffset * DateTimeOffset -> Azure.Core.DateTimeRange
Public Sub New (start As DateTimeOffset, end As DateTimeOffset)

Parameters

start
System.DateTimeOffset

The start of the range.

end
System.DateTimeOffset

The end of the range.

Applies to

DateTimeRange(DateTimeOffset, TimeSpan)

Initializes an instance of DateTimeRange using a start time and a duration value.

public DateTimeRange (DateTimeOffset start, TimeSpan duration);
new Azure.Core.DateTimeRange : DateTimeOffset * TimeSpan -> Azure.Core.DateTimeRange
Public Sub New (start As DateTimeOffset, duration As TimeSpan)

Parameters

start
System.DateTimeOffset

The start of the range.

duration
System.TimeSpan

The duration of the range.

Applies to

DateTimeRange(TimeSpan, DateTimeOffset)

Initializes an instance of DateTimeRange using a duration and an end time.

public DateTimeRange (TimeSpan duration, DateTimeOffset end);
new Azure.Core.DateTimeRange : TimeSpan * DateTimeOffset -> Azure.Core.DateTimeRange
Public Sub New (duration As TimeSpan, end As DateTimeOffset)

Parameters

duration
System.TimeSpan

The duration of the range.

end
System.DateTimeOffset

The end of the range.

Applies to