Content Studio Web Content Management System
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
[This is preliminary documentation and is subject to change.]
Deletes a directory in a virtual file system and, if indicated, any subdirectory and file in the directory.
Namespace: ContentStudio.Storage
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax
Parameters
- virtualPath
- Type: SystemString
The virtual path of the directory to remove. - recursive
- Type: SystemBoolean
true to remove directories, subdirectories, and files in virtualPath; otherwise, false.
When recursive is false the directory must be empty
Implements
IWritableVirtualPathProviderDeleteDirectory(String, Boolean)Exceptions
Exception | Condition |
---|---|
IOException | The directory specified by path is read-only, or recursive is false and virtualPath is not an empty directory. |
DirectoryNotFoundException | |
UnauthorizedAccessException | The caller does not have the required permission. |
ArgumentException | virtualPath is a zero-length string, contains only white space, or contains one or more invalid characters. |
ArgumentNullException | virtualPath is null |
NotSupportedException | The operation is not supported. |
See Also