FtpClientConnection FtpClientConnection FtpClientConnection FtpClientConnection Class

Definition

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

public ref class FtpClientConnection sealed : Microsoft::SqlServer::Dts::Runtime::DtsObject, Microsoft::SqlServer::Dts::Runtime::IDTSPersist
public sealed class FtpClientConnection : Microsoft.SqlServer.Dts.Runtime.DtsObject, Microsoft.SqlServer.Dts.Runtime.IDTSPersist
type FtpClientConnection = class
    inherit DtsObject
    interface IDTSPersist
Public NotInheritable Class FtpClientConnection
Inherits DtsObject
Implements IDTSPersist
Inheritance
FtpClientConnectionFtpClientConnectionFtpClientConnectionFtpClientConnection
Implements

Remarks

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

Constructors

FtpClientConnection(Object) FtpClientConnection(Object) FtpClientConnection(Object) FtpClientConnection(Object)

Initializes a new instance of the FtpClientConnection class.

Properties

ChunkSize ChunkSize ChunkSize ChunkSize

Gets 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.

Retries Retries Retries Retries

Gets or sets the number of times the task attempts an operation. A value of 0 indicates that there is no limit on attempts.

ServerName ServerName ServerName ServerName

Gets or sets the name of the File Transfer Protocol (FTP) server.

ServerPassword ServerPassword ServerPassword ServerPassword

Sets the password for the server specified in the ServerName property. This property is write-only.

ServerPort ServerPort ServerPort ServerPort

Gets or sets the port number on the server.

ServerUserName ServerUserName ServerUserName ServerUserName

Gets or sets the logon alias of the user.

Timeout Timeout Timeout Timeout

Gets or sets a value that indicates how long to attempt the connection before timing out.

UsePassiveMode UsePassiveMode UsePassiveMode UsePassiveMode

Gets or sets a Boolean that indicates whether the task sends and receives files in passive mode.

Methods

Close() Close() Close() Close()

Closes the FTP connection.

Connect() Connect() Connect() Connect()

Opens the connection to the server and returns a value that indicates the result of the connection.

CreateRemoteDirectory(String) CreateRemoteDirectory(String) CreateRemoteDirectory(String) CreateRemoteDirectory(String)

Creates a remote directory.

DeleteFiles(String[]) DeleteFiles(String[]) DeleteFiles(String[]) DeleteFiles(String[])

Deletes the specified files from the File Transfer Protocol (FTP) server.

DeleteRemoteDirectory(String) DeleteRemoteDirectory(String) DeleteRemoteDirectory(String) DeleteRemoteDirectory(String)

Deletes a remote directory.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether two object instances are equal.

(Inherited from DtsObject)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Returns the hash code for this instance.

(Inherited from DtsObject)
GetListing(String[], String[]) GetListing(String[], String[]) GetListing(String[], String[]) GetListing(String[], String[])

Lists the names of directories and files in the specified folder or directory from the FTP server.

GetWorkingDirectory() GetWorkingDirectory() GetWorkingDirectory() GetWorkingDirectory()

Gets the current working directory on the File Transfer Protocol (FTP) server.

LoadFromXML(XmlNode, IDTSEvents) LoadFromXML(XmlNode, IDTSEvents) LoadFromXML(XmlNode, IDTSEvents) LoadFromXML(XmlNode, IDTSEvents)

This method is not callable by your application code. To load a package saved as .xml, use the LoadPackage(String, IDTSEvents) method.

ReceiveFiles(String[], String, Boolean, Boolean) ReceiveFiles(String[], String, Boolean, Boolean) ReceiveFiles(String[], String, Boolean, Boolean) ReceiveFiles(String[], String, Boolean, Boolean)

Receives files from the File Transfer Protocol (FTP) server.

SaveToXML(XmlDocument, XmlNode, IDTSEvents) SaveToXML(XmlDocument, XmlNode, IDTSEvents) SaveToXML(XmlDocument, XmlNode, IDTSEvents) SaveToXML(XmlDocument, XmlNode, IDTSEvents)

This method is not callable by your application code. To save a package as .xml, use the SaveToXml(String, Package, IDTSEvents) method.

SendFiles(String[], String, Boolean, Boolean) SendFiles(String[], String, Boolean, Boolean) SendFiles(String[], String, Boolean, Boolean) SendFiles(String[], String, Boolean, Boolean)

Sends files to the File Transfer Protocol (FTP) server.

SetWorkingDirectory(String) SetWorkingDirectory(String) SetWorkingDirectory(String) SetWorkingDirectory(String)

Sets the current working directory on the File Transfer Protocol (FTP) server.

Applies to