IsolatedStorageScope Enumeration

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.IsolatedStorage
Assembly:  mscorlib (in mscorlib.dll)

[SerializableAttribute]
[ComVisibleAttribute(true)]
[FlagsAttribute]
public enum IsolatedStorageScope

Member nameDescription
ApplicationIsolated storage scoped to the application.
AssemblyIsolated storage scoped to the identity of the assembly.
DomainIsolated storage scoped to the application domain identity.
MachineIsolated storage scoped to the machine.
NoneNo isolated storage usage.
RoamingThe 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).
UserIsolated storage scoped by user identity.

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(IsolatedStorageScope.User |
    IsolatedStorageScope.Assembly |
    IsolatedStorageScope.Domain,
    null,
    null);

IsolatedStorageFileStream isoStream =
    new IsolatedStorageFileStream("substituteUsername",
    System.IO.FileMode.Open,
    System.IO.FileAccess.Read,
     System.IO.FileShare.Read);

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft