System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForDomain Method

Obtains user-scoped isolated storage corresponding to the application domain identity and assembly identity.

Syntax

public static IsolatedStorageFile GetUserStoreForDomain ()

Returns

An object corresponding to the System.IO.IsolatedStorage.IsolatedStorageScope, based on a combination of the application domain identity and the assembly identity.

Remarks

The same assembly code will use different isolated stores when used in the context of different applications.

IsolatedStorageFile.GetUserStoreForDomain is functionally equivalent to the following code:

code reference: System.IO.IsolatedStorage.IsolatedStorage#23

Different assemblies running within the same application domain always have distinct isolated stores.

Note:

IsolatedStorageFile.GetUserStoreForDomain will return an System.IO.IsolatedStorage.IsolatedStorageFile object without a quota if the application domain in which the assembly is installed does not have System.Security.Permissions.IsolatedStorageFilePermission. Later attempts to create an System.IO.IsolatedStorage.IsolatedStorageFile object using the System.IO.IsolatedStorage.IsolatedStorageFile object that does not have a quota will fail with an System.IO.IsolatedStorage.IsolatedStorageException.

Requirements

Namespace: System.IO.IsolatedStorage
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0