Click or drag to resize

ProjectFoldersCopyItemsFromFolderToFolder Method

Copies project items from a source folder to a destination folder.

Namespace: Altaxo.Main
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public void CopyItemsFromFolderToFolder(
	string sourceFolderName,
	string destinationFolderName,
	bool includeSubfolders = true,
	bool relocateReferences = true,
	bool overwriteExistingItemsOfSameType = false,
	bool throwIfFolderDoesNotExists = true
)

Parameters

sourceFolderName  String
Name of the source folder.
destinationFolderName  String
Name of the destination folder.
includeSubfolders  Boolean  (Optional)
If set to true, items in subfolders are included in the operation, too.
relocateReferences  Boolean  (Optional)
If set to true, the references inbetween the copied items are maintained.
overwriteExistingItemsOfSameType  Boolean  (Optional)
If set to true, existing items of same type will be overwritten. If set to false, and an items of same type and name already exists, a new name is given to the copied item.
throwIfFolderDoesNotExists  Boolean  (Optional)
If true, and the provided folder does not exist, a ArgumentOutOfRangeException
See Also