| FileHandlerExtensionValidateCopyAction Method |
Validate the selected copy action for each individual file before the action is executed.
Namespace:
CTExtensions.Interfaces
Assembly:
CTInterface (in CTInterface.dll)
Syntax public virtual bool ValidateCopyAction(
int lBulkEditAction,
string bsOldFile,
string bsNewFile1,
Array oParents,
ref bool rbSupported,
ref string roErrorMsg
)
Public Overridable Function ValidateCopyAction (
lBulkEditAction As Integer,
bsOldFile As String,
bsNewFile1 As String,
oParents As Array,
ByRef rbSupported As Boolean,
ByRef roErrorMsg As String
) As Boolean
Parameters
- lBulkEditAction
- Type: SystemInt32
eBulkEditAction - bsOldFile
- Type: SystemString
Original filename - bsNewFile1
- Type: SystemString
Target filename. Empty for actions that do not make copies. - oParents
- Type: SystemArray
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
- Type: SystemBoolean
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
- Type: SystemString
Error message to show for the user when rbSupported is true.
Return Value
Type:
BooleanReturn true if CT Core should consider
rbSupported, false otherwise.
Availability See Also