IdbCursor Class
A cursor over the records of an object store or an index (https://w3c.github.io/IndexedDB/#idbcursor).
public class IdbCursorProperties
| Name | Description |
|---|---|
| Direction | Gets the direction of the cursor. |
| Key | Gets the key of the cursor (the same value until the cursor moves), or null (undefined). |
| PrimaryKey | Gets the effective key of the cursor (the same value until the cursor moves), or null (undefined). |
| Request | Gets the request of the cursor. |
| Source | Gets the object store or the index of the cursor. |
Direction
IdbCursor.csGets the direction of the cursor.
public IdbCursorDirection Direction { get; }Key
IdbCursor.csGets the key of the cursor (the same value until the cursor moves), or null (undefined).
public object? Key { get; }PrimaryKey
IdbCursor.csGets the effective key of the cursor (the same value until the cursor moves), or null (undefined).
public object? PrimaryKey { get; }Request
IdbCursor.csGets the request of the cursor.
public IdbRequest Request { get; }Source
IdbCursor.csGets the object store or the index of the cursor.
public object Source { get; }Methods
| Name | Description |
|---|---|
| Advance(uint) | Advances the cursor by a number of records (https://w3c.github.io/IndexedDB/#dom-idbcursor-advance). |
| Continue(object?) | Advances the cursor to the next record, or to the next record at or after a key (https://w3c.github.io/IndexedDB/#dom-idbcursor-continue). |
| ContinuePrimaryKey(object?, object?) | Advances the cursor of an index to a key and a primary key (https://w3c.github.io/IndexedDB/#dom-idbcursor-continueprimarykey). |
| Delete() | Deletes the record of the cursor (https://w3c.github.io/IndexedDB/#dom-idbcursor-delete). |
| Update(object?) | Replaces the value of the record of the cursor (https://w3c.github.io/IndexedDB/#dom-idbcursor-update). |
Advance(uint)
IdbCursor.csAdvances the cursor by a number of records (https://w3c.github.io/IndexedDB/#dom-idbcursor-advance).
Continue(object?)
IdbCursor.csAdvances the cursor to the next record, or to the next record at or after a key (https://w3c.github.io/IndexedDB/#dom-idbcursor-continue).
ContinuePrimaryKey(object?, object?)
IdbCursor.csAdvances the cursor of an index to a key and a primary key (https://w3c.github.io/IndexedDB/#dom-idbcursor-continueprimarykey).
Parameters
See also
Delete()
IdbCursor.csDeletes the record of the cursor (https://w3c.github.io/IndexedDB/#dom-idbcursor-delete).
public IdbRequest Delete()Update(object?)
IdbCursor.csReplaces the value of the record of the cursor (https://w3c.github.io/IndexedDB/#dom-idbcursor-update).
public IdbRequest Update(object? value)