Persistate API documentation
ReplaceSingleton Method (singleton)
NamespacesPersistateSessionReplaceSingleton(Persistent)

[This is preliminary documentation and is subject to change.]

Replaces any current singleton object with a new one.
Declaration Syntax
C#
public void ReplaceSingleton(
	Persistent singleton
)
Parameters
singleton (Persistent)
The new singleton object.
Remarks

This replaces an existing singleton object for the running Package in the current Environment with the supplied one.

NB: This will delete the entire persistent tree under the existing singleton object with the same class as the supplied one.

Assembly: Persistate (Module: Persistate) Version: 0.6.1.20 (0.6.1.20)