objectStore method

Returns an object store that is part of the transaction.

Internet Explorer 10



var retVal = IDBTransaction.objectStore(name);


name [in]

Type: DOMString

Name of the object store to return.


This method can throw the following DOMException exceptions:

Note  As of Internet Explorer 10, the code property is deprecated in favor of the name property, which is preferred for standards compliance and future compatibility.
Exception propertiesCondition
name: NotFoundError
code: DOMException.NOT_FOUND_ERR (8)

An object store could not be found with the specified name (case-sensitive).

name: InvalidStateError
code: DOMException.INVALID_STATE_ERR (11)

The data source has been deleted or is otherwise not available.


Standards information

See also