Range<T> Class
Definition
A class that represents a range used by the RangePartitionResolver<T> class in the Azure DocumentDB database service.
[System.Obsolete("Support for classes used with IPartitionResolver is now obsolete. It's recommended that you use partitioned collections for higher storage and throughput.")]
public class Range<T> : IComparable<Microsoft.Azure.Documents.Partitioning.Range<T>>, IEquatable<Microsoft.Azure.Documents.Partitioning.Range<T>> where T : IComparable<T>, IEquatable<T>
- T
Any type that can be used for range comparison.
- Inheritance
-
Range<T>
- Attributes
- Implements
-
IComparable<Range<T>> IEquatable<Range<T>>
Remarks
Support for classes used with IPartitionResolver is now obsolete. It's recommended that you use Partitioned Collections for higher storage and throughput.
Constructors
| Range<T>(T) |
Initializes a new instance of the Range<T> class for a single value. |
| Range<T>(T, T) |
Initializes a new instance of the Range<T> class using the specified low and high values. |
Properties
| High |
Gets the high value in the range. |
| Low |
Gets the low value in the range. |
Methods
| CompareTo(Range<T>) |
Compares two ranges. |
| Contains(Range<T>) |
Checks if the range contains another range.. |
| Contains(T) |
Checks if the range contains a key. |
| Equals(Range<T>) |
Checks if two ranges are equal. |
| GetHashCode() |
Creates the hashcode for the range. |
| Intersect(Range<T>) |
Checks if the range |
| ToString() |
Converts the range to a string in the form of "low,high" |
Extension Methods
| IsDefined(Object) | |
| IsNull(Object) | |
| IsPrimitive(Object) |