System.IO.IsolatedStorage.IsolatedStorageFile.GetStore Method

Obtains the isolated storage corresponding to the given application domain and assembly evidence objects.

Syntax

public static IsolatedStorageFile GetStore (IsolatedStorageScope scope, object domainIdentity, object assemblyIdentity)

Parameters

scope
A bitwise combination of the enumeration values.
domainIdentity
An object that contains evidence for the application domain identity.
assemblyIdentity
An object that contains evidence for the code assembly identity.

Returns

An object that represents the parameters.

Remarks

This form of GetStore is most useful for administrative code that needs to open a store as if it were another assembly. The store is opened for the evidence provided and not for the currently executing assembly.

Note:

If the scope parameter is IsolatedStorageScope.Domain and the application domain in which the assembly is installed does not have System.Security.Permissions.IsolatedStorageFilePermission, the IsolatedStorageFile.GetStore(IsolatedStorageScope, Type, Type) method will return an System.IO.IsolatedStorage.IsolatedStorageFile object without a quota. 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