FtpClientConnection Class

Downloads and uploads data files and manages directories on servers. This class cannot be inherited.


Namespace:  Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

public sealed class FtpClientConnection : DtsObject, 

The FtpClientConnection type exposes the following members.

Public methodFtpClientConnectionInitializes a new instance of the FtpClientConnection class.

Public propertyChunkSizeGets or sets the value that indicates the minimum number of bytes to retrieve from or send to the server during a File Transfer Protocol (FTP) read/write operation.
Public propertyRetriesGets or sets the number of times the task attempts an operation. A value of 0 indicates that there is no limit on attempts.
Public propertyServerNameGets or sets the name of the File Transfer Protocol (FTP) server.
Public propertyServerPasswordSets the password for the server specified in the ServerName property. This property is write-only.
Public propertyServerPortGets or sets the port number on the server.
Public propertyServerUserNameGets or sets the logon alias of the user.
Public propertyTimeoutGets or sets a value that indicates how long to attempt the connection before timing out.
Public propertyUsePassiveModeGets or sets a Boolean that indicates whether the task sends and receives files in passive mode.

Public methodCloseCloses the FTP connection.
Public methodConnectOpens the connection to the server and returns a value that indicates the result of the connection.
Public methodCreateRemoteDirectoryCreates a remote directory.
Public methodDeleteFilesDeletes the specified files from the File Transfer Protocol (FTP) server.
Public methodDeleteRemoteDirectoryDeletes a remote directory.
Public methodEqualsDetermines whether two object instances are equal. (Inherited from DtsObject.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCodeReturns the hash code for this instance. (Inherited from DtsObject.)
Public methodGetListingLists the names of directories and files in the specified folder or directory from the FTP server.
Public methodGetType (Inherited from Object.)
Public methodGetWorkingDirectoryGets the current working directory on the File Transfer Protocol (FTP) server.
Public methodLoadFromXMLThis method is not callable by your application code. To load a package saved as .xml, use the Application.LoadPackage method.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodReceiveFilesReceives files from the File Transfer Protocol (FTP) server.
Public methodSaveToXMLThis method is not callable by your application code. To save a package as .xml, use the Application.SaveToXml method.
Public methodSendFilesSends files to the File Transfer Protocol (FTP) server.
Public methodSetWorkingDirectorySets the current working directory on the File Transfer Protocol (FTP) server.
Public methodToString (Inherited from Object.)

For more information about the FTP task, see FTP Connection Manager.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions