Bewerken

Delen via


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
DeleteDirectoryOption

Fields

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.

DeleteAllContents 5

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

Remarks

This enumeration is used with the DeleteDirectory method.

Applies to

See also