Click or drag to resize

Win32FindDataDeleteDirectory Method (String, Win32FindDataEnumerateOptions)

Deletes the specified directory and, if indicated, any subdirectories and files in the directory. The operation first deletes all the files in the directory and then deletes the directory itself.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static bool DeleteDirectory(
	string path,
	Win32FindDataEnumerateOptions options
)

Parameters

path
Type: SystemString
The name of the directory to remove.
options
Type: callback.ShellBoost.Core.UtilitiesWin32FindDataEnumerateOptions
The options to use when enumerating files in the directory.

Return Value

Type: Boolean
true if the directory existed and no errors have occured during delete operations; otherwise false.
See Also