IsolatedStorageScope IsolatedStorageScope IsolatedStorageScope IsolatedStorageScope Enum


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.

public enum class IsolatedStorageScope
public enum IsolatedStorageScope
type IsolatedStorageScope = 
Public Enum IsolatedStorageScope


Application Application Application Application 32

Isolated storage scoped to the application.

Assembly Assembly Assembly Assembly 4

Isolated storage scoped to the identity of the assembly.

Domain Domain Domain Domain 2

Isolated storage scoped to the application domain identity.

Machine Machine Machine Machine 16

Isolated storage scoped to the machine.

None None None None 0

No isolated storage usage.

Roaming Roaming Roaming Roaming 8

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

User User User User 1

Isolated storage scoped by user identity.


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 );

// Retrieve an IsolatedStorageFile for the current Domain and Assembly.
IsolatedStorageFile isoFile =
    IsolatedStorageFile.GetStore(IsolatedStorageScope.User |
    IsolatedStorageScope.Assembly |

IsolatedStorageFileStream isoStream =
    new IsolatedStorageFileStream("substituteUsername",
' Retrieve an IsolatedStorageFile for the current Domain and Assembly.
Dim isoFile As IsolatedStorageFile = _
    IsolatedStorageFile.GetStore(IsolatedStorageScope.User _
    Or IsolatedStorageScope.Assembly _
    Or IsolatedStorageScope.Domain, Nothing, Nothing)

Dim isoStream As New IsolatedStorageFileStream("substituteUsername", System.IO.FileMode.Open, _
    System.IO.FileAccess.Read, System.IO.FileShare.Read)


Use IsolatedStorageScope to specify a degree of scope for an isolated store. You can specify combinations of these levels that are supported by IsolatedStorage.

Applies to

See also