IdbKeyRange Class
A key range (https://w3c.github.io/IndexedDB/#idbkeyrange).
public sealed class IdbKeyRangeProperties
| Name | Description |
|---|---|
| Lower | Gets the lower bound (a new value each time), or null (undefined) when the range has no lower bound. |
| LowerOpen | Gets whether the lower bound is excluded. |
| Upper | Gets the upper bound (a new value each time), or null (undefined) when the range has no upper bound. |
| UpperOpen | Gets whether the upper bound is excluded. |
Lower
IdbKeyRange.csGets the lower bound (a new value each time), or null (undefined) when the range has no lower bound.
public object? Lower { get; }LowerOpen
IdbKeyRange.csGets whether the lower bound is excluded.
public bool LowerOpen { get; }Upper
IdbKeyRange.csGets the upper bound (a new value each time), or null (undefined) when the range has no upper bound.
public object? Upper { get; }UpperOpen
IdbKeyRange.csGets whether the upper bound is excluded.
public bool UpperOpen { get; }Methods
| Name | Description |
|---|---|
| Bound(object?, object?, bool, bool) | Creates a range with a lower and an upper bound (https://w3c.github.io/IndexedDB/#dom-idbkeyrange-bound). |
| Includes(object?) | Returns whether a key is in the range (https://w3c.github.io/IndexedDB/#dom-idbkeyrange-includes). |
| LowerBound(object?, bool) | Creates a range with a lower bound (https://w3c.github.io/IndexedDB/#dom-idbkeyrange-lowerbound). |
| Only(object?) | Creates a range containing only a key (https://w3c.github.io/IndexedDB/#dom-idbkeyrange-only). |
| UpperBound(object?, bool) | Creates a range with an upper bound (https://w3c.github.io/IndexedDB/#dom-idbkeyrange-upperbound). |
Bound(object?, object?, bool, bool)
IdbKeyRange.csCreates a range with a lower and an upper bound (https://w3c.github.io/IndexedDB/#dom-idbkeyrange-bound).
public static IdbKeyRange Bound(object? lower, object? upper, bool lowerOpen = false, bool upperOpen = false)Parameters
Returns
See also
Includes(object?)
IdbKeyRange.csReturns whether a key is in the range (https://w3c.github.io/IndexedDB/#dom-idbkeyrange-includes).
LowerBound(object?, bool)
IdbKeyRange.csCreates a range with a lower bound (https://w3c.github.io/IndexedDB/#dom-idbkeyrange-lowerbound).
public static IdbKeyRange LowerBound(object? lower, bool open = false)Parameters
Returns
See also
Only(object?)
IdbKeyRange.csCreates a range containing only a key (https://w3c.github.io/IndexedDB/#dom-idbkeyrange-only).
public static IdbKeyRange Only(object? value)UpperBound(object?, bool)
IdbKeyRange.csCreates a range with an upper bound (https://w3c.github.io/IndexedDB/#dom-idbkeyrange-upperbound).
public static IdbKeyRange UpperBound(object? upper, bool open = false)