ProtectedSessionStorage Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides mechanisms for storing and retrieving data in the browser's 'sessionStorage' collection.
This data will be scoped to the current browser tab. The data will be discarded if the user closes the browser tab or closes the browser itself.
See: https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage.
public ref class ProtectedSessionStorage sealed : Microsoft::AspNetCore::Components::Server::ProtectedBrowserStorage::ProtectedBrowserStorage
public sealed class ProtectedSessionStorage : Microsoft.AspNetCore.Components.Server.ProtectedBrowserStorage.ProtectedBrowserStorage
type ProtectedSessionStorage = class
inherit ProtectedBrowserStorage
Public NotInheritable Class ProtectedSessionStorage
Inherits ProtectedBrowserStorage
- Inheritance
Protected |
Constructs an instance of ProtectedSessionStorage. |
Delete |
Asynchronously deletes any data stored for the specified key. (Inherited from ProtectedBrowserStorage) |
Get |
Asynchronously retrieves the specified data. (Inherited from ProtectedBrowserStorage) |
Get |
Asynchronously retrieves the specified data.
Since no data protection purpose is specified with this overload, the purpose is derived from
|
Set |
Asynchronously stores the specified data.
Since no data protection purpose is specified with this overload, the purpose is derived from
|
Set |
Asynchronously stores the supplied data. (Inherited from ProtectedBrowserStorage) |
Product | Versions |
---|---|
ASP.NET Core | 5.0, 6.0, 7.0, 8.0, 9.0 |