Specifies what should be done when a directory that is to be deleted contains files or directories.
| C# | Visual Basic |
public enum DeleteDirectoryOption
Public Enumeration DeleteDirectoryOption
| Member | Description |
|---|---|
| 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.
|
| DeleteAllContents |
Delete the contents of the directory along with the directory.
|
| HasFlag |
Determines whether one or more bit fields are set in the current instance.
|