IdbKeyRange Class

A key range (https://w3c.github.io/IndexedDB/#idbkeyrange).

public sealed class IdbKeyRange

Properties

NameDescription
LowerGets the lower bound (a new value each time), or null (undefined) when the range has no lower bound.
LowerOpenGets whether the lower bound is excluded.
UpperGets the upper bound (a new value each time), or null (undefined) when the range has no upper bound.
UpperOpenGets whether the upper bound is excluded.

Gets the lower bound (a new value each time), or null (undefined) when the range has no lower bound.

public object? Lower { get; }

Gets whether the lower bound is excluded.

public bool LowerOpen { get; }

Gets the upper bound (a new value each time), or null (undefined) when the range has no upper bound.

public object? Upper { get; }

Gets whether the upper bound is excluded.

public bool UpperOpen { get; }

Methods

NameDescription
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.cs

Creates 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)

Includes(object?)

IdbKeyRange.cs

Returns whether a key is in the range (https://w3c.github.io/IndexedDB/#dom-idbkeyrange-includes).

public bool Includes(object? key)

LowerBound(object?, bool)

IdbKeyRange.cs

Creates a range with a lower bound (https://w3c.github.io/IndexedDB/#dom-idbkeyrange-lowerbound).

public static IdbKeyRange LowerBound(object? lower, bool open = false)

Only(object?)

IdbKeyRange.cs

Creates a range containing only a key (https://w3c.github.io/IndexedDB/#dom-idbkeyrange-only).

public static IdbKeyRange Only(object? value)

UpperBound(object?, bool)

IdbKeyRange.cs

Creates a range with an upper bound (https://w3c.github.io/IndexedDB/#dom-idbkeyrange-upperbound).

public static IdbKeyRange UpperBound(object? upper, bool open = false)