IsolatedStorageFile.GetUserStoreForSite Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
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)
Syntax
'Declaration
<SecuritySafeCriticalAttribute> _
Public Shared Function GetUserStoreForSite As IsolatedStorageFile
[SecuritySafeCriticalAttribute]
public static IsolatedStorageFile GetUserStoreForSite()
Return Value
Type: System.IO.IsolatedStorage.IsolatedStorageFile
The isolated storage file that corresponds to the isolated storage scope based on the calling code's application identity.
Exceptions
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. |
Remarks
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.
Version Information
Silverlight
Supported in: 5, 4, 3
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.