DTSFTPOp Enumeration

 

Lists the set of predefined operations for the FTP task.

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

public enum class DTSFTPOp

Member nameDescription
DeleteLocal

Deletes a file on the local computer.

DeleteRemote

Deletes a file on the FTP server.

MakeDirLocal

Creates a directory on the local computer.

MakeDirRemote

Creates a directory on the FTP server.

Receive

Saves a file from the FTP server to the local computer.

RemoveDirLocal

Deletes a directory on the local computer.

RemoveDirRemote

Deletes a directory on the FTP server.

Send

Sends a file from the local computer to the FTP server.

For more information, see FTP Task.

The following code example creates an FtpTask, then shows the default values it contains after creation. Some fields are empty, and must be explicitly set before the task is executed in the package. The sample shows how to use this enumeration to set the Operation property of the FtpTask.

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

Sample Output:

Connection

DebugMode False

ExecutionValue 0

IsLocalPathVariable False

IsRemotePathVariable False

IsTransferTypeASCII False

LocalPath

Operation 0

OperationName

OverwriteDestination False

RemotePath

StopOnOperationFailure True

SuspendRequired False

--------------------------

New value of Operation: 1

Return to top
Show: