System.IO.IsolatedStorage.IsolatedStorageFile.GetStore Method

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

Syntax

public static IsolatedStorageFile GetStore (IsolatedStorageScope scope, Type domainEvidenceType, Type assemblyEvidenceType)

Parameters

scope
A bitwise combination of the enumeration values.
domainEvidenceType
The type of the System.Security.Policy.Evidence that you can chose from the list of System.Security.Policy.Evidence present in the domain of the calling application. null lets the System.IO.IsolatedStorage.IsolatedStorage object choose the evidence.
assemblyEvidenceType
The type of the System.Security.Policy.Evidence that you can chose from the list of System.Security.Policy.Evidence present in the domain of the calling application. null lets the System.IO.IsolatedStorage.IsolatedStorage object choose the evidence.

Returns

An object that represents the parameters.

Remarks

This is the overload of IsolatedStorageFile.GetStore(IsolatedStorageScope, Type, Type) most likely to be called from application code.

This overload of IsolatedStorageFile.GetStore(IsolatedStorageScope, Type, Type) opens an isolated store for the evidence types that are passed in.

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