DeleteDirectoryOption Enumeration
.NET Framework (current version)
Specifies what should be done when a directory that is to be deleted contains files or directories.
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
| Member name | Description | |
|---|---|---|
| DeleteAllContents | Delete the contents of the directory along with the directory. Default. | |
| ThrowIfDirectoryNonEmpty | Throw an IOException if the directory is not empty. The Data property of the exception lists the file(s) that could not be deleted. |
This enumeration is used with the DeleteDirectory method.
.NET Framework
Available since 2.0
Available since 2.0
Show: