IHTMLStorageItem::value Property

New for Windows Internet Explorer 8

Note: This documentation is preliminary and is subject to change.

Sets or retrieves the value of the named storage item.

Syntax

HRESULT IHTMLStorageItem::get_value(BSTR *p);
HRESULT IHTMLStorageItem::put_value(BSTR v);

Parameters

  • p
    Pointer to a variable of type BSTR that receives the stored value as a string.
  • v
    BSTR that specifies the stored value as a string.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

All key/value pairs are stored as strings. Different data types (such as numbers, boolean values, and structured data) must first be converted to strings before they can be added to a storage area.

See Also

IHTMLStorage::getItem, IHTMLStorage::setItem