IndexedDBKeyRange Class

A range of encoded keys (https://w3c.github.io/IndexedDB/#range-construct). A null bound is unbounded, and an open bound is excluded from the range.

public sealed class IndexedDBKeyRange : IEquatable<IndexedDBKeyRange>
Implements

Constructors

NameDescription
IndexedDBKeyRange(byte[]?, byte[]?, bool, bool)A range of encoded keys (https://w3c.github.io/IndexedDB/#range-construct). A null bound is unbounded, and an open bound is excluded from the range.

IndexedDBKeyRange(byte[]?, byte[]?, bool, bool)

IndexedDBBackend.cs

A range of encoded keys (https://w3c.github.io/IndexedDB/#range-construct). A null bound is unbounded, and an open bound is excluded from the range.

public IndexedDBKeyRange(byte[]? Lower, byte[]? Upper, bool LowerOpen = false, bool UpperOpen = false)

Parameters

Lower byte[]?
The lower bound, or null.
Upper byte[]?
The upper bound, or null.
LowerOpen bool
Whether the lower bound is excluded.
UpperOpen bool
Whether the upper bound is excluded.

Properties

NameDescription
AllGets the range of all the keys.
LowerThe lower bound, or null.
LowerOpenWhether the lower bound is excluded.
UpperThe upper bound, or null.
UpperOpenWhether the upper bound is excluded.

Gets the range of all the keys.

public static IndexedDBKeyRange All { get; }

Property value

IndexedDBKeyRange

The lower bound, or null.

public byte[]? Lower { get; init; }

Property value

byte[]?

Whether the lower bound is excluded.

public bool LowerOpen { get; init; }

Property value

bool

The upper bound, or null.

public byte[]? Upper { get; init; }

Property value

byte[]?

Whether the upper bound is excluded.

public bool UpperOpen { get; init; }

Property value

bool

Methods

NameDescription
Contains(ReadOnlySpan<byte>)Returns whether an encoded key is in the range.
Deconstruct(byte[]?, byte[]?, bool, bool)
Equals(IndexedDBKeyRange?)
Equals(object?)
GetHashCode()
Only(byte[])Creates the range that contains only one key.
ToString()

Contains(ReadOnlySpan<byte>)

IndexedDBBackend.cs

Returns whether an encoded key is in the range.

public bool Contains(ReadOnlySpan<byte> key)

Parameters

key ReadOnlySpan<byte>

Returns

bool

Deconstruct(byte[]?, byte[]?, bool, bool)

public void Deconstruct(out byte[]? Lower, out byte[]? Upper, out bool LowerOpen, out bool UpperOpen)

Parameters

Lower byte[]?
Upper byte[]?
LowerOpen bool
UpperOpen bool

No documentation is available.

Equals overloads

Equals(IndexedDBKeyRange?)

public bool Equals(IndexedDBKeyRange? other)
Parameters
other IndexedDBKeyRange?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

Creates the range that contains only one key.

public static IndexedDBKeyRange Only(byte[] key)

Parameters

key byte[]

Returns

IndexedDBKeyRange

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(IndexedDBKeyRange?, IndexedDBKeyRange?)
operator !=(IndexedDBKeyRange?, IndexedDBKeyRange?)

operator ==(IndexedDBKeyRange?, IndexedDBKeyRange?)

public static bool operator ==(IndexedDBKeyRange? left, IndexedDBKeyRange? right)

Parameters

left IndexedDBKeyRange?
right IndexedDBKeyRange?

Returns

bool

No documentation is available.

operator !=(IndexedDBKeyRange?, IndexedDBKeyRange?)

public static bool operator !=(IndexedDBKeyRange? left, IndexedDBKeyRange? right)

Parameters

left IndexedDBKeyRange?
right IndexedDBKeyRange?

Returns

bool

No documentation is available.