Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

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] 
[FlagsAttribute] 
[ComVisibleAttribute(true)] 
public enum IsolatedStorageScope
/** @attribute SerializableAttribute() */ 
/** @attribute FlagsAttribute() */ 
/** @attribute ComVisibleAttribute(true) */ 
public enum IsolatedStorageScope
SerializableAttribute 
FlagsAttribute 
ComVisibleAttribute(true) 
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(this.userName,
    FileMode.Open,
    FileAccess.Read,
    FileShare.Read);

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.