index method

Retrieves an index associated with the object store.

Internet Explorer 10

Syntax

var retVal = IDBObjectStore.index(name);

Parameters

name [in]

Type: DOMString

Name of the index to be retrieved.

Exceptions

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)

The specified index was not found in the database (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

IDBObjectStore

 

 

Show:
© 2014 Microsoft