The NonOverwritable property sets or returns a value indicating whether a destination file will be overwritten if it already exists, when copied by a DTSFTPTask object.
object.NonOverwritable [= boolean]
Part | Description |
---|---|
object | Expression that evaluates to a DTSFTPTask object. |
boolean | If TRUE, transfer of a source file is inhibited if the destination file already exists. If FALSE, the destination file is overwritten. |
Boolean
Read/write
HRESULT NonOverwritable(VARIANT_BOOL* pVal);
HRESULT NonOverwritable(VARIANT_BOOL pVal);
No error is raised when the transfer of a source file is inhibited by the NonOverwritable property.
The property also can be referenced through the Properties collection of the Task object with the following code:
Set taskprops = task.Properties
taskprops("NonOverwritable") [= boolean]