Microsoft.AspNetCore.Components.Server.ProtectedBrowserStorage Namespace

Provides types for storing and retrieving data in the browser storage.

Classes

ProtectedBrowserStorage

Provides mechanisms for storing and retrieving data in the browser storage.

ProtectedLocalStorage

Provides mechanisms for storing and retrieving data in the browser's 'localStorage' collection.

This data will be scoped to the current user's browser, shared across all tabs. The data will persist across browser restarts.

See: https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage.

ProtectedSessionStorage

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.

Structs

ProtectedBrowserStorageResult<TValue>

Contains the result of a protected browser storage operation.

Remarks

For more information about using browser storage, see ASP.NET Core Blazor state management.