IsolatedStorageFile.Remove Method (IsolatedStorageScope)

 

Removes the specified isolated storage scope for all identities.

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

public static void Remove(
	IsolatedStorageScope scope
)

Parameters

scope
Type: System.IO.IsolatedStorage.IsolatedStorageScope

A bitwise combination of the IsolatedStorageScope values.

Exception Condition
IsolatedStorageException

The isolated store cannot be removed.

System_CAPS_cautionCaution

This method irrevocably removes the entire scope and all contained directories and files.

If any of the directories or files in the store are in use, the removal attempt for the store fails and the store is marked for removal. Any subsequent attempts to modify the store throw an IsolatedStorageException.

IsolatedStorageFilePermission

for using isolated storage. Associated enumeration: AdministerIsolatedStorageByUser

ReflectionPermission

when invoked late-bound through mechanisms such as Type.InvokeMember. Associated enumeration: ReflectionPermissionFlag.MemberAccess

.NET Framework
Available since 1.1
Return to top
Show: