Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Silverlight 3
 GetUserStoreForApplication Method
Collapse All/Expand All Collapse All
.NET Framework Class Library for Silverlight
IsolatedStorageFile..::.GetUserStoreForApplication Method

Obtains user-scoped isolated storage for use by an application that calls from the virtual host domain.

Namespace:  System.IO.IsolatedStorage
Assembly:  mscorlib (in mscorlib.dll)
Visual Basic (Declaration)
Public Shared Function GetUserStoreForApplication As IsolatedStorageFile
Visual Basic (Usage)
Dim returnValue As IsolatedStorageFile

returnValue = IsolatedStorageFile.GetUserStoreForApplication()
C#
public static IsolatedStorageFile GetUserStoreForApplication()

Return Value

Type: System.IO.IsolatedStorage..::.IsolatedStorageFile
The isolated storage file that corresponds to the isolated storage scope based on the identity of an application in a virtual host domain.
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.

An application on a 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 the quota, use the IncreaseQuotaTo method.

To obtain the isolated storage for a user by all the applications in the domain, use the GetUserStoreForSite method.

The following example obtains a store. This example is part of a larger example provided for IsolatedStorageFile class.

Visual Basic
Using store As IsolatedStorageFile = _
    IsolatedStorageFile.GetUserStoreForApplication()


...


End Using
C#
using (var store = IsolatedStorageFile.GetUserStoreForApplication())
{


...


}

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

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker