This documentation is archived and is not being maintained.
IsolatedStorageScope Enumeration
Visual Studio 2010
Enumerates the levels of isolated storage scope that are supported by IsolatedStorage.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Namespace: System.IO.IsolatedStorageAssembly: mscorlib (in mscorlib.dll)
| Member name | Description | |
|---|---|---|
| None | No isolated storage usage. | |
| User | Isolated storage scoped by user identity. | |
| Domain | Isolated storage scoped to the application domain identity. | |
| Assembly | Isolated storage scoped to the identity of the assembly. | |
| Roaming | The isolated store can be placed in a location on the file system that might roam (if roaming user data is enabled on the underlying operating system). | |
| Machine | Isolated storage scoped to the machine. | |
| Application | Isolated storage scoped to the application. |
Use IsolatedStorageScope to specify a degree of scope for an isolated store. You can specify combinations of these levels that are supported by IsolatedStorage.
The following code example demonstrates how the IsolatedStorageScope enumeration is used in the GetStore methods.
// Retrieve an IsolatedStorageFile for the current Domain and Assembly. IsolatedStorageFile^ isoFile = IsolatedStorageFile::GetStore( static_cast<IsolatedStorageScope>(IsolatedStorageScope::User | IsolatedStorageScope::Assembly | IsolatedStorageScope::Domain), (Type^)nullptr, nullptr ); IsolatedStorageFileStream^ isoStream = gcnew IsolatedStorageFileStream( this->userName,FileMode::Open,FileAccess::ReadWrite,isoFile );
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: