objectStore method

Returns an object store that is part of the transaction.

Syntax

var retVal = IDBTransaction.objectStore(name);

Parameters

name [in]

Type: DOMString

Name of the object store to return.

Exceptions

This method can throw the following DOMException exceptions:

Note  As of a Windows Store app using JavaScript, 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

IDBTransaction

 

 

Show:
© 2014 Microsoft. All rights reserved.