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
public enum DeleteDirectoryOption
public enum DeleteDirectoryOption

 Member nameDescription
DeleteAllContentsDelete the contents of the directory along with the directory. Default. 
ThrowIfDirectoryNonEmptyThrow an IOException if the directory is not empty. The Data property of the exception lists the file(s) that could not be deleted. 

For more detailed information, see the Visual Basic topic DeleteDirectoryOption Enumeration.

This enumeration is used with the My.Computer.FileSystem.DeleteDirectory Method.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0