DTSFTPOp Enumeration
Lists the set of predefined operations for the FTP task.
Assembly: Microsoft.SqlServer.FtpTask (in Microsoft.SqlServer.FtpTask.dll)
| Member name | Description | |
|---|---|---|
| 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. |
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.
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