Share via


QueryTimeRange Constructors

Definition

Overloads

QueryTimeRange(TimeSpan)

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

QueryTimeRange(DateTimeOffset, DateTimeOffset)

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

QueryTimeRange(DateTimeOffset, TimeSpan)

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

QueryTimeRange(TimeSpan, DateTimeOffset)

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

QueryTimeRange(TimeSpan)

Source:
QueryTimeRange.cs
Source:
QueryTimeRange.cs

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

public QueryTimeRange (TimeSpan duration);
new Azure.Monitor.Query.QueryTimeRange : TimeSpan -> Azure.Monitor.Query.QueryTimeRange
Public Sub New (duration As TimeSpan)

Parameters

duration
TimeSpan

The duration of the range.

Applies to

QueryTimeRange(DateTimeOffset, DateTimeOffset)

Source:
QueryTimeRange.cs
Source:
QueryTimeRange.cs

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

public QueryTimeRange (DateTimeOffset start, DateTimeOffset end);
new Azure.Monitor.Query.QueryTimeRange : DateTimeOffset * DateTimeOffset -> Azure.Monitor.Query.QueryTimeRange
Public Sub New (start As DateTimeOffset, end As DateTimeOffset)

Parameters

start
DateTimeOffset

The start of the range.

end
DateTimeOffset

The end of the range.

Applies to

QueryTimeRange(DateTimeOffset, TimeSpan)

Source:
QueryTimeRange.cs
Source:
QueryTimeRange.cs

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

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

Parameters

start
DateTimeOffset

The start of the range.

duration
TimeSpan

The duration of the range.

Applies to

QueryTimeRange(TimeSpan, DateTimeOffset)

Source:
QueryTimeRange.cs
Source:
QueryTimeRange.cs

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

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

Parameters

duration
TimeSpan

The duration of the range.

end
DateTimeOffset

The end of the range.

Applies to