This topic has not yet been rated - Rate this topic

DeleteDirectoryOption Enumeration 

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)

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.