Click or drag to resize

IWebStorage Interface

An HTML WebStorage.

Provides access to the session storage or local storage for a particular document on the loaded web page. Allows you to add, modify, or delete the stored items.

Namespace:  DotNetBrowser.Frames
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.27.7
Syntax
C#
public interface IWebStorage : IAutoDisposable

The IWebStorage type exposes the following members.

Properties
  NameDescription
Public propertyCount
Gets the number of the key/value pairs in the storage.
Public propertyIsDisposed
Indicates if the object is already disposed.
(Inherited from IAutoDisposable.)
Public propertyItem
Gets or sets the value associated with the given key. The setter adds the item with the specified key and value to the storage, or updates it if the item with the given key already exists.
Public propertyKeys
Gets a list of the web storage keys.
Top
Methods
  NameDescription
Public methodClear
Removes all the items from the storage.
Public methodContains
Checks if the specified key is present in the storage.
Public methodRemove
Removes the item with the specified key from the storage. Does nothing if there is no item with the specified key in the storage.
Top
Events
  NameDescription
Public eventDisposed
Occurs when the object has been disposed.
(Inherited from IAutoDisposable.)
Top
See Also