void xtd::io::directory_info::remove | ( | bool | recursive | ) | const |
Deletes this instance of a DirectoryInfo, specifying whether to delete subdirectories and files.
recursive | true to delete this directory, its subdirectories, and all files; otherwise, false. |
xtd::unauthorized_access_exception | The directory contains a read-only file. |
xtd::io::directory_not_found_exception | The directory described by this xtd::io::directory_info object does not exist or could not be found. |
xtd::io::io_exception | The directory is not empty. -or- The directory is the application's current working directory. -or- There is an open handle on the directory. |
xtd::security::security_exception | The caller does not have the required permission. |