Open a storage container for the current application.
This method returns a boolean value. If the container was opened, it will return true, otherwise it will return false.
The Open method opens the specified storage container using the current application ID and requests an access token for the application. This method that must be called prior to accessing any stored objects.
The storageType parameter specifies the type of container that objects will be stored in. In most cases, we recommend using Container.storageGlobal which means that stored objects will be accessible to all users of your application. However, you can limit access to the stored objects based on the local domain, local machine ID or the current user SID.
If you specify anything other than global storage, objects can be orphaned if the system configuration changes. For example, if Container.storageMachine is specified, the objects that are stored there can only be accessed from that computer system. If the system is reconfigured (for example, the boot volume formatted and Windows is reinstalled) the unique identifier for that system will change and the previous objects that were stored by your application will no longer be accessible.
It is advisable is to store critical application data and configuration information in the Container.storageGlobal container and use other non-global storage containers for configuration information that is unique to that system and/or user which is not critical and can be easily recreated.
If a storage container was opened prior to calling this method, the current container will be closed and the new container opened.
WebStorage Class | SocketTools Namespace | WebStorage.Open Overload List | Close Method | Container Enumeration