Click or drag to resize

FileHandlerExtensionValidateCopyAction Method

Validate the selected copy action for each individual file before the action is executed.

Namespace: CTExtensions.Interfaces
Assembly: CTInterface (in CTInterface.dll) Version: 25.0
Syntax
public virtual bool ValidateCopyAction(
	int lBulkEditAction,
	string bsOldFile,
	string bsNewFile1,
	Array oParents,
	ref bool rbSupported,
	ref string roErrorMsg
)

Parameters

lBulkEditAction  Int32
eBulkEditAction
bsOldFile  String
Original filename
bsNewFile1  String
Target filename. Empty for actions that do not make copies.
oParents  Array
Array of strings; contains original filenames of bsOldFile's parent files THAT ARE NOT SELECTED for the current action, but would get modified by the current action. E.g. renaming child component requires that parent file is modifiable so it reference to the renamed child component can be updated.
rbSupported  Boolean
return false to give roErrorMsg and prevent preforming the lBulkEditAction. Return true to allow the action even if the CT core would otherwise define it unsupported.
roErrorMsg  String
Error message to show for the user when rbSupported is true.

Return Value

Boolean
Return true if CT Core should consider rbSupported, false otherwise.
Revision History
DateVersionDescription
-2022 SP1First Release
See Also