Retrieves the current value associated with the Web Storage key.
HRESULT getItem( BSTR bstrKey, VARIANT *pbstrValue );
- [in] The name of the key (a valid 16-bit Unicode Transformation Format (UTF-16) string, including the empty string).
- [out, retval] Returns the value as a VARIANT.
Returns one of the following values.
S_OK The operation completed successfully. E_ACCESSDENIED The operation is not allowed.
Any valid UTF-16 string, including the empty string, is a valid key name.
If the specified bstrKey does not exist in the list associated with the object, then this method returns VT_NULL.
Attempts to read or write a secured item from script running in the context of an unsecured URL are not permitted.