DTS Programming
NonOverwritable Property
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.
Applies To
DTSFTPTask Object |
Syntax
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. |
Data Type
Boolean
Modifiable
Read/write
Prototype (C/C++)
HRESULT NonOverwritable(VARIANT_BOOL* pVal);
HRESULT NonOverwritable(VARIANT_BOOL pVal);
Remarks
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]