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
EventTarget IdbRequest

Properties

NameDescription
ErrorGets the error of the request, or null.
OnErrorThe event handler of the error events.
OnSuccessThe event handler of the success events.
ReadyStateGets the state of the request.
ResultGets the result of the request (an IDL any value: null is undefined).
SourceGets the source of the request: an IdbObjectStore, an IdbIndex, an IdbCursor, or null.
TransactionGets the transaction of the request, or null.

Gets the error of the request, or null.

public DomException? Error { get; }

Property value

DomException?

Exceptions

DomException
An InvalidStateError when the request is not done.

See also

The event handler of the error events.

public Action<Event>? OnError { get; set; }

OnSuccess

IdbRequest.cs

The event handler of the success events.

public Action<Event>? OnSuccess { get; set; }

ReadyState

IdbRequest.cs

Gets the state of the request.

public IdbRequestReadyState ReadyState { get; }

Gets the result of the request (an IDL any value: null is undefined).

public object? Result { get; }

Property value

object?

Exceptions

DomException
An InvalidStateError when the request is not done.

See also

Gets the source of the request: an IdbObjectStore, an IdbIndex, an IdbCursor, or null.

public object? Source { get; }

Transaction

IdbRequest.cs

Gets the transaction of the request, or null.

public IdbTransaction? Transaction { get; }