IdbRequest Class
A request (https://w3c.github.io/IndexedDB/#request-api): the result of an asynchronous operation on a database, made available when the success or error event is fired at the request.
public class IdbRequest : EventTarget- Inheritance
EventTargetIdbRequest
Properties
| Name | Description |
|---|---|
| Error | Gets the error of the request, or null. |
| OnError | The event handler of the error events. |
| OnSuccess | The event handler of the success events. |
| ReadyState | Gets the state of the request. |
| Result | Gets the result of the request (an IDL any value: null is undefined). |
| Source | Gets the source of the request: an IdbObjectStore, an IdbIndex, an IdbCursor, or null. |
| Transaction | Gets the transaction of the request, or null. |
Error
IdbRequest.csGets the error of the request, or null.
public DomException? Error { get; }OnError
IdbRequest.csThe event handler of the error events.
OnSuccess
IdbRequest.csThe event handler of the success events.
ReadyState
IdbRequest.csResult
IdbRequest.csGets the result of the request (an IDL any value: null is undefined).
public object? Result { get; }Source
IdbRequest.csGets the source of the request: an IdbObjectStore, an IdbIndex, an IdbCursor, or null.
public object? Source { get; }Transaction
IdbRequest.csGets the transaction of the request, or null.
public IdbTransaction? Transaction { get; }