IsolatedStorageFile.GetStore Method (IsolatedStorageScope, Object)

Obtains isolated storage corresponding to the given application identity.

Namespace:  System.IO.IsolatedStorage
Assembly:  mscorlib (in mscorlib.dll)

public static IsolatedStorageFile GetStore(
	IsolatedStorageScope scope,
	Object applicationIdentity


Type: System.IO.IsolatedStorage.IsolatedStorageScope

A bitwise combination of the enumeration values.

Type: System.Object

An object that contains evidence for the application identity.

Return Value

Type: System.IO.IsolatedStorage.IsolatedStorageFile
An object that represents the parameters.


Sufficient isolated storage permissions have not been granted.


The applicationIdentity identity has not been passed in.


The scope is invalid.


An isolated storage location cannot be initialized.


scope contains the enumeration value Application, but the application identity of the caller cannot be determined,because the ActivationContext for the current application domain returned null.


scope contains the value Domain, but the permissions for the application domain cannot be determined.


scope contains the value Assembly, but the permissions for the calling assembly cannot be determined.


If the scope parameter is IsolatedStorageScope.Application and the application domain in which the assembly is installed does not have IsolatedStorageFilePermission, the GetStore method will return an IsolatedStorageFile object without a quota. Later attempts to create an IsolatedStorageFile object using the IsolatedStorageFile object that does not have a quota will fail with an IsolatedStorageException.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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