gives the persistent object where InitializationValue[sym,loc] is stored.
gives the persistent object where the initialization value for the symbol with the specified complete name is stored.
Details and Options
- In InitializationObject[sym,loc], possible forms for the persistence location loc include:
PersistenceLocation["type"] "Local", "Cloud", "FrontEndSession", etc. locations "type" equivalent to PersistenceLocation["type"] PersistenceLocation["type","base"] location with a particular base (directory etc.) "type""base" equivalent to PersistenceLocation["type","base"]
- Supported location types include:
"KernelSession" current invocation of the Wolfram Language kernel "FrontEndSession" current invocation of the Wolfram Notebook front end "ServerSession" persistence for requests on a single web server "CookieManaged" persistence based on a Wolfram browser cookie "Local" local to a computer, based on user home directory "LocalShared" local to a computer, based on $BaseDirectory "Cloud" in the cloud defined by the current $CloudBase "Installation" installation defaults
Examplesopen allclose all
Basic Examples (1)
The custom merging function is used to return the list of all values on $PersistencePath:
Properties & Relations (1)
InitializationObject is used to access a specific object in a given persistence location:
Wolfram Research (2021), InitializationObject, Wolfram Language function, https://reference.wolfram.com/language/ref/InitializationObject.html.
Wolfram Language. 2021. "InitializationObject." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/InitializationObject.html.
Wolfram Language. (2021). InitializationObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/InitializationObject.html