Condividi tramite


Classe FtpClientConnection

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

Gerarchia di ereditarietà

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

Spazio dei nomi  Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

Sintassi

'Dichiarazione
Public NotInheritable Class FtpClientConnection _
    Inherits DtsObject _
    Implements IDTSPersist
'Utilizzo
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

Nel tipo FtpClientConnection sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico FtpClientConnection Initializes a new instance of the FtpClientConnection class.

In alto

Proprietà

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

In alto

Metodi

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

In alto

Osservazioni

For more information about the FTP task, see Gestione connessione FTP.

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.