DeleteDirectoryOption Enumeration

 

Specifies what should be done when a directory that is to be deleted contains files or directories.

Namespace:   Microsoft.VisualBasic.FileIO
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public enum DeleteDirectoryOption

Member nameDescription
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
Return to top
Show: