Click or drag to resize

ProjectFoldersDeleteItemsInFolder Method

Deletes all project items in a folder.

Namespace: Altaxo.Main
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public bool DeleteItemsInFolder(
	string sourceFolderName,
	bool includeSubfolders = true,
	bool throwIfFolderDoesNotExists = false,
	bool showConfirmationDialog = true
)

Parameters

sourceFolderName  String
Name of folder in which the items should be deleted.
includeSubfolders  Boolean  (Optional)
If set to true, the items in all subfolders are also deleted.
throwIfFolderDoesNotExists  Boolean  (Optional)
If true, and the provided folder does not exist, a ArgumentOutOfRangeException
showConfirmationDialog  Boolean  (Optional)
If true, shows the confirmation dialog to confirm that the items should really be deleted.

Return Value

Boolean
True if any item was deleted; otherwise, false.
See Also