Class UserScreenContext
- Namespace
- Dynamicweb.CoreUI.Screens
- Assembly
- Dynamicweb.CoreUI.dll
Abstract class enabling setting and getting context user-specific data related to UI screens.
public abstract class UserScreenContext
- Inheritance
-
UserScreenContext
- Inherited Members
Methods
GetValue<T>(string)
Retrieves a previously stored user-specific value by key.
public abstract T? GetValue<T>(string key)
Parameters
keystringThe storage key used in SetValue<T>(string, T).
Returns
- T
The stored value, or default if the key is not found or the type does not match.
Type Parameters
TThe expected value type.
SetValue<T>(string, T)
Persists a user-specific value for the current screen session.
public abstract void SetValue<T>(string key, T value)
Parameters
keystringThe storage key. Must be unique within the screen context.
valueTThe value to store.
Type Parameters
TThe value type to store.