IsolatedStorageFile.DeleteDirectory Method (String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Deletes a directory in the isolated storage scope.

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

member DeleteDirectory : 
        dir:string -> unit

Parameters

dir
Type: System.String

The relative path of the directory to delete within the isolated storage scope.

Exception Condition
IsolatedStorageException

The directory could not be deleted.

ArgumentNullException

The directory path was null.

A directory must be empty before it is deleted. The deleted directory cannot be recovered once deleted.

The How to: Delete Files and Directories in Isolated Storage example demonstrates the use of the DeleteDirectory method.

No code example is currently available or this language may not be supported.

IsolatedStorageFilePermission

for accessing the isolated storage scope.

ReflectionPermission

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

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: