Range<T> Constructors
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.
Overloads
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. |
Range<T>(T)
Initializes a new instance of the Range<T> class for a single value.
public Range (T point);
new Microsoft.Azure.Documents.Partitioning.Range<'T (requires 'T :> IComparable<'T> and 'T :> IEquatable<'T>)> : 'T -> Microsoft.Azure.Documents.Partitioning.Range<'T (requires 'T :> IComparable<'T> and 'T :> IEquatable<'T>)>
Public Sub New (point As T)
Parameters
- point
- T
A value that is used to create the range.
Applies to
Range<T>(T, T)
Initializes a new instance of the Range<T> class using the specified low and high values.
public Range (T low, T high);
new Microsoft.Azure.Documents.Partitioning.Range<'T (requires 'T :> IComparable<'T> and 'T :> IEquatable<'T>)> : 'T * 'T -> Microsoft.Azure.Documents.Partitioning.Range<'T (requires 'T :> IComparable<'T> and 'T :> IEquatable<'T>)>
Public Sub New (low As T, high As T)
Parameters
- low
- T
The low value in the range.
- high
- T
The high value in the range.
Exceptions
Throws an exception if the range is invalid (low is greater than high).
Applies to
Azure SDK for .NET