DeleteDirectoryOption Enumeration
Visual Studio 2005
Specifies what should be done when a directory that is to be deleted contains files or directories.
This enumeration is used with the My.Computer.FileSystem.DeleteDirectory Method.
| Member | 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. |
Namespace: Microsoft.VisualBasic.FileIO
Class: DeleteDirectoryOption
Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)