Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.IO.SessionStateIO<TObj> Class

Implements SessionState I/O for an object of type TObj. Used to save/load object to/from .NET (Core) session state.

This can be used by applications to store session information. This is intended for large data objects.

For smaller data objects, the class YetaWF.Core.Support.Repository.SettingsDictionary offers storing dictionaries with named objects in session state.

Namespace: YetaWF.Core.IO
Assembly: YetaWF.Core

Inheritance

Syntax

public class SessionStateIO<TObj>;

Constructors

PublicSessionStateIO<TObj>Constructor.

Properties

PublicDataThe object to save or loaded from session state.
PublicKeyThe name of the object to load/save in session state.

Methods

PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
PublicLoadLoads the object named by the Key property.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicRemoveRemoves the object named by the Key property. Throws an error if the object does not exist.
PublicSaveSaves the object defined by the Data property with the named Key.
PublicInherited from System.ObjectToStringReturns a string that represents the current object.

See Also YetaWF.Core Overview