FileSystemTask::OverwriteDestinationFile Property


Gets or sets a Boolean that indicates whether the task will overwrite destination files.

Namespace:   Microsoft.SqlServer.Dts.Tasks.FileSystemTask
Assembly:  Microsoft.SqlServer.FileSystemTask (in Microsoft.SqlServer.FileSystemTask.dll)

property bool OverwriteDestinationFile {
	virtual bool get() sealed;
	virtual void set(bool value) sealed;

Property Value

Type: System::Boolean

true if the task will overwrite destination files; false otherwise.

The following code example creates a FileSystemTask as an Executable in a package. The FileSystemTask copies a test folder, which contains two subfolders and a .txt file, to another folder. The sample does not overwrite any files at the destination, so OverwriteDestinationFile is set to false.

No code example is currently available or this language may not be supported.
Return to top