bound method

Creates a bound key range.

Internet Explorer 10

Syntax

object.bound(lower, upper, lowerOpen, upperOpen, retVal)

Parameters

lower [in]

Type: any

The lower value of the key range.

upper [in]

Type: any

The upper value of the key range.

lowerOpen [in, optional]

Type: boolean

Indicates whether the key range includes the lower value.

upperOpen [in, optional]

Type: boolean

Indicates whether the key range includes the upper value.

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: DataError

The specified values violate index constraints. For example:

  • The lower parameter or the upper parameter specified an invalid key value
  • The lower parameter value is greater than the upper parameter value
  • Both parameter values are the same, but one parameter is open when the other is closed.

Standards information

See also

IDBKeyRange

 

 

Show:
© 2015 Microsoft