DateTimeRange Struct

Definition

Represents a span of time over which the query would be executed.

public struct DateTimeRange : IEquatable<Azure.Core.DateTimeRange>
type DateTimeRange = struct
Public Structure DateTimeRange
Implements IEquatable(Of DateTimeRange)
Inheritance
System.ValueType
DateTimeRange
Implements
System.IEquatable<DateTimeRange>

Constructors

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)

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

DateTimeRange(TimeSpan, DateTimeOffset)

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

Properties

All

Represents the maximum DateTimeRange.

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(DateTimeRange)

Indicates whether the current object is equal to another object of the same type.

Equals(Object)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns the hash code for this instance.

Parse(String)

Converts a System.String value to it's DateTimeRange representation.

ToString()

Returns the fully qualified type name of this instance.

Operators

Equality(DateTimeRange, DateTimeRange)

Determines if two DateTimeRange values are the same.

Implicit(TimeSpan to DateTimeRange)

Converts a System.TimeSpan to a DateTimeRange.

Inequality(DateTimeRange, DateTimeRange)

Determines if two DateTimeRange values are different.

Applies to