ProtectedBrowserStorage Class

Definition

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

C#
public abstract class ProtectedBrowserStorage
Inheritance
ProtectedBrowserStorage
Derived

Methods

DeleteAsync(String)

Asynchronously deletes any data stored for the specified key.

GetAsync<TValue>(String, String)

Asynchronously retrieves the specified data.

GetAsync<TValue>(String)

Asynchronously retrieves the specified data.

Since no data protection purpose is specified with this overload, the purpose is derived from key and the store name. This is a good default purpose to use if the keys come from a fixed set known at compile-time.

SetAsync(String, Object)

Asynchronously stores the specified data.

Since no data protection purpose is specified with this overload, the purpose is derived from key and the store name. This is a good default purpose to use if the keys come from a fixed set known at compile-time.

SetAsync(String, String, Object)

Asynchronously stores the supplied data.

Applies to

Product Versions
ASP.NET Core 5.0, 6.0, 7.0, 8.0, 9.0