Export (0) Print
Expand All

DeleteDirectoryOption Enumeration

Note: This enumeration is new in the .NET Framework version 2.0.

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)

'Declaration
Public Enumeration DeleteDirectoryOption
'Usage
Dim instance As 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 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft