Overview

APIs

APIDescription
SetItem, SetItemAsyncStore a value in LocalStorage
GetItem, GetItemAsyncRetrieve a value based on a key
ContainKey, ContainKeyAsyncCheck if a key exists
RemoveItem, RemoveItemAsyncRemove a value from LocalStorage

ILocalStorage

@inject Blazored.LocalStorage.ILocalStorageService localStorage

var firstName = await localStorage.GetItemAsync<string>("EmployeeFirstName");