Export (0) Print
Expand All

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)

[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.

ExceptionCondition
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.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft