DeleteDirectoryOption Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: