Table of Contents

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

key string

The 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

T

The 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

key string

The storage key. Must be unique within the screen context.

value T

The value to store.

Type Parameters

T

The value type to store.

To top