NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IsolatedStorageFile.DeleteDirectory

Deletes a directory in the isolated storage scope.

[Visual Basic]
Public Sub DeleteDirectory( _
   ByVal dir As String _
)
[C#]
public void DeleteDirectory(
   string dir
);
[C++]
public: void DeleteDirectory(
   String* dir
);
[JScript]
public function DeleteDirectory(
   dir : String
);

Parameters

dir
relative path of the directory to delete within the isolated storage scope

Return Value

none

Exceptions

Exception Type Condition
IsolatedStorageException insufficient permission to delete isolated storage directory

Remarks

Deleting a directory includes deleting all its contents- files and subdirectories. The deleted directory and its contents cannot be recovered once deleted.

Requirements

NGWS Runtime Security:

IsolatedStorageFilePermission right to access the isolated storage scope

See Also

IsolatedStorageFile Class | IsolatedStorageFile Members | System.IO.IsolatedStorage Namespace