IStorage Interface
Contents
[
Hide
]IStorage interface
This interface of the Web Storage API provides access to a particular domain’s session or local storage. See Web Storage specification: https://html.spec.whatwg.org/multipage/webstorage.html#webstorage
public interface IStorage
Properties
Name | Description |
---|---|
getLength Returns the number of key/value pairs. |
Methods
Name | Description |
---|---|
clear() | Removes all key/value pairs, if there are any. |
getItem(String) | Returns the current value associated with the given key, or null if the given key does not exist. |
key(long) | Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs. |
removeItem(String) | Removes the key/value pair with the given key, if a key/value pair with the given key exists. |
setItem(String, String) | Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously. |
See Also
- package com.aspose.html.dom
- package Aspose.HTML