BrowserStorage
Wisej.Core.BrowserStorage
Last updated
Wisej.Core.BrowserStorage
Last updated
Namespace: Wisej.Core
Assembly: Wisej.Framework (2.2.0.0)
Represents the browser's storage objects.
Removes all the values from the browser's storage.
Returns all the keys in the browser's storage.
Parameter | Type | Description |
---|---|---|
callback | Callback method that receives each key name asynchronously. |
Asynchronously returns all the keys in the browser's storage.
Returns: Task<String[]>. An awaitable Task that represents the asynchronous operation.
Returns the value stored in the browser's storage associated with the specified key .
Parameter | Type | Description |
---|---|---|
T | Type of the value to retrieve. | |
key | Key associated with the value to retrieve. | |
callback | Callback method that receives the value asynchronously. |
This method returns the value asynchronously because it waits for the browser to respond.
Throws:
ArgumentNullException The key is null or empty, or callback is null.
Asynchronously returns the value stored in the browser's storage associated with the specified key .
Parameter | Type | Description |
---|---|---|
T | Type of the value to retrieve. | |
key | Kay associated with the value to retrieve. |
Returns: Task<T>. An awaitable Task that represents the asynchronous operation.
Removes the value associated with the key from the browser's storage.
Parameter | Type | Description |
---|---|---|
key | Kay associate with the value to remove. |
Stores the specified value in the browser's storage.
Parameter | Type | Description |
---|---|---|
T | Type of the value to store. | |
key | Key associated with the value. | |
value | Value to store in the browser's storage. |
Name | Description |
---|---|
Represents the browser's localStorage. Use this class through the LocalStorage instance. | |
Represents the browser's localStorage. Use this class through the SessionStorage instance. | |
Represents the browser's cookie storage. Use this class through the CookieStorage instance. |