IHTMLStorage interface

Represents a key/value list from Web Storage.

Members

The IHTMLStorage interface inherits from the IDispatch interface. IHTMLStorage also has these types of members:

Methods

The IHTMLStorage interface has these methods.

MethodDescription
clear

Removes all key/value pairs from the Web Storage area.

getItem

Retrieves the current value associated with the Web Storage key.

key

Retrieves the key at the specified index in the collection.

removeItem

Deletes a key/value pair from the Web Storage collection.

setItem

Sets a key/value pair.

 

Properties

The IHTMLStorage interface has these properties.

PropertyDescription

length

Retrieves the length of the key/value list.

remainingSpace

Retrieves the remaining memory space, in bytes, for the storage object.

 

Remarks

This is the object returned by IHTMLWindow6::sessionStorage or a specific instance of IHTMLWindow6::localStorage.

Requirements

Minimum supported client

Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft