Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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 class IsolatedStorageScope

Member nameDescription
Application

Isolated storage scoped to the application.

Assembly

Isolated storage scoped to the identity of the assembly.

Domain

Isolated storage scoped to the application domain identity.

Machine

Isolated storage scoped to the machine.

None

No isolated storage usage.

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

User

Isolated 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( static_cast<IsolatedStorageScope>(IsolatedStorageScope::User | IsolatedStorageScope::Assembly | IsolatedStorageScope::Domain), (Type^)nullptr, nullptr );
IsolatedStorageFileStream^ isoStream = gcnew IsolatedStorageFileStream( this->userName,FileMode::Open,FileAccess::ReadWrite,isoFile );

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft