Partager via


Classe FtpClientConnection

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

Hiérarchie d'héritage

System.Object
  Microsoft.SqlServer.Dts.Runtime.DtsObject
    Microsoft.SqlServer.Dts.Runtime.FtpClientConnection

Espace de noms :  Microsoft.SqlServer.Dts.Runtime
Assembly :  Microsoft.SqlServer.ManagedDTS (en Microsoft.SqlServer.ManagedDTS.dll)

Syntaxe

'Déclaration
Public NotInheritable Class FtpClientConnection _
    Inherits DtsObject _
    Implements IDTSPersist
'Utilisation
Dim instance As FtpClientConnection
public sealed class FtpClientConnection : DtsObject, 
    IDTSPersist
public ref class FtpClientConnection sealed : public DtsObject, 
    IDTSPersist
[<SealedAttribute>]
type FtpClientConnection =  
    class 
        inherit DtsObject 
        interface IDTSPersist 
    end
public final class FtpClientConnection extends DtsObject implements IDTSPersist

Le type FtpClientConnection expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique FtpClientConnection Initializes a new instance of the FtpClientConnection class.

Haut de la page

Propriétés

  Nom Description
Propriété publique 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.
Propriété publique 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.
Propriété publique ServerName Gets or sets the name of the File Transfer Protocol (FTP) server.
Propriété publique ServerPassword Sets the password for the server specified in the ServerName property. This property is write-only.
Propriété publique ServerPort Gets or sets the port number on the server.
Propriété publique ServerUserName Gets or sets the logon alias of the user.
Propriété publique Timeout Gets or sets a value that indicates how long to attempt the connection before timing out.
Propriété publique UsePassiveMode Gets or sets a Boolean that indicates whether the task sends and receives files in passive mode.

Haut de la page

Méthodes

  Nom Description
Méthode publique Close Closes the FTP connection.
Méthode publique Connect Opens the connection to the server and returns a value that indicates the result of the connection.
Méthode publique CreateRemoteDirectory Creates a remote directory.
Méthode publique DeleteFiles Deletes the specified files from the File Transfer Protocol (FTP) server.
Méthode publique DeleteRemoteDirectory Deletes a remote directory.
Méthode publique Equals Determines whether two object instances are equal. (hérité de DtsObject.)
Méthode publique GetHashCode Returns the hash code for this instance. (hérité de DtsObject.)
Méthode publique GetListing Lists the names of directories and files in the specified folder or directory from the FTP server.
Méthode publique GetType (hérité de Object.)
Méthode publique GetWorkingDirectory Gets the current working directory on the File Transfer Protocol (FTP) server.
Méthode publique LoadFromXML This method is not callable by your application code. To load a package saved as .xml, use the Application.LoadPackage method.
Méthode publique ReceiveFiles Receives files from the File Transfer Protocol (FTP) server.
Méthode publique SaveToXML This method is not callable by your application code. To save a package as .xml, use the Application.SaveToXml method.
Méthode publique SendFiles Sends files to the File Transfer Protocol (FTP) server.
Méthode publique SetWorkingDirectory Sets the current working directory on the File Transfer Protocol (FTP) server.
Méthode publique ToString (hérité de Object.)

Haut de la page

Notes

For more information about the FTP task, see Gestionnaire de connexions FTP.

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Dts.Runtime