QueryTimeRange Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a span of time over which the query would be executed.
public readonly struct QueryTimeRange : IEquatable<Azure.Monitor.Query.QueryTimeRange>
type QueryTimeRange = struct
Public Structure QueryTimeRange
Implements IEquatable(Of QueryTimeRange)
- Inheritance
-
QueryTimeRange
- Implements
Constructors
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) |
Initializes an instance of QueryTimeRange using a duration value. The exact query range would be determined by the service when executing the query. |
QueryTimeRange(TimeSpan, DateTimeOffset) |
Initializes an instance of QueryTimeRange using a duration and an end time. |
Properties
All |
Represents the maximum QueryTimeRange. |
Duration |
Gets the duration of the range. |
End |
Gets the end time of the range. |
Start |
Gets the start time of the range. |
Methods
Equals(Object) |
Indicates whether this instance and a specified object are equal. |
Equals(QueryTimeRange) |
Indicates whether the current object is equal to another object of the same type. |
GetHashCode() |
Returns the hash code for this instance. |
ToString() |
Returns the fully qualified type name of this instance. |
Operators
Equality(QueryTimeRange, QueryTimeRange) |
Determines if two QueryTimeRange values are the same. |
Implicit(TimeSpan to QueryTimeRange) |
Converts a TimeSpan to a QueryTimeRange. |
Inequality(QueryTimeRange, QueryTimeRange) |
Determines if two QueryTimeRange values are different. |
Applies to
Azure SDK for .NET