IsolatedStorageFile.GetUserStoreForSite Method
Obtains a user-scoped isolated store for use by all applications in a virtual host domain.
Namespace: System.IO.IsolatedStorage
Assembly: mscorlib (in mscorlib.dll)
'Declaration <SecuritySafeCriticalAttribute> _ Public Shared Function GetUserStoreForSite As IsolatedStorageFile
Return Value
Type: System.IO.IsolatedStorage.IsolatedStorageFileThe isolated storage file that corresponds to the isolated storage scope based on the calling code's application identity.
| Exception | Condition |
|---|---|
| IsolatedStorageException | The group quota for the store is set to zero. -or- The store has been removed but cannot be recreated because a directory or file is being used by another process. -or- Isolated storage is disabled. |
This method is typically used with the IsolatedStorageSettings class to provide settings that are available to all applications in the domain.
An application on a virtual host domain (Web site) shares a group quota with all the other applications in that domain. This enables multiple applications in the same domain to share a single quota. Note that domain in this context refers to a virtual host domain, such as Microsoft.com, not to an application domain.
The default isolated storage size for a group quota is 1 megabyte. To increase that quota, use the IncreaseQuotaTo method.
To obtain the isolated storage for a user for the current application in the domain, use the GetUserStoreForApplication method.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.