Persistate API documentation
FindSingleton Method (singletonClass)
NamespacesPersistateSessionFindSingleton(ObjectClass)

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

Gets the singleton object for the running Package in the current Environment with a particular class.
Declaration Syntax
C#
public Persistent FindSingleton(
	ObjectClass singletonClass
)
Parameters
singletonClass (ObjectClass)
The class of the singleton.
Return Value
The retrieved or created singleton object.
Remarks
This will create the required EntryPoint and Singleton object if they have not yet been created. This is called by generated The classes when you access its singleton properties for the first time. You can also use it to find singletons from any package you have used in your own package.
Exceptions
ExceptionCondition
ArgumentNullExceptionsingletonClass is null.
ArgumentExceptionSupplied class is not a singleton class, or is not available from the running package.

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