Export (0) Print
Expand All
1 out of 2 rated this helpful - Rate this topic

key method

Retrieves the key at the specified index in the collection.

Web Storage, Section 4.1Internet Explorer 8

Syntax

var retval = Storage.key(lIndex);

Parameters

lIndex [in]

Type: Integer

A zero-based index of the list entry, up to the length of the collection.

Return value

Type: String

Returns the name of the specified key.

Standards information

Remarks

The key can be any string, including the empty string.

The order of keys may change when items are added to the collection.

Free the memory returned in pbstrKey with SysFreeString.

This method will throw an "Invalid Argument" exception if lIndex is out of range.

See also

Storage
getItem

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.