DeleteDirectoryOption DeleteDirectoryOption DeleteDirectoryOption DeleteDirectoryOption Enum

Definition

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

public enum class DeleteDirectoryOption
public enum DeleteDirectoryOption
type DeleteDirectoryOption = 
Public Enum DeleteDirectoryOption
Inheritance
DeleteDirectoryOptionDeleteDirectoryOptionDeleteDirectoryOptionDeleteDirectoryOption

Fields

DeleteAllContents DeleteAllContents DeleteAllContents DeleteAllContents 5

Delete the contents of the directory along with the directory. Default.

ThrowIfDirectoryNonEmpty ThrowIfDirectoryNonEmpty ThrowIfDirectoryNonEmpty ThrowIfDirectoryNonEmpty 4

Throw an IOException if the directory is not empty. The Data property of the exception lists the file(s) that could not be deleted.

Remarks

This enumeration is used with the DeleteDirectory method.

Applies to

See also