Поделиться через


Класс FtpClientConnection

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

Иерархия наследования

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

Пространство имен:  Microsoft.SqlServer.Dts.Runtime
Сборка:  Microsoft.SqlServer.ManagedDTS (в Microsoft.SqlServer.ManagedDTS.dll)

Синтаксис

'Декларация
Public NotInheritable Class FtpClientConnection _
    Inherits DtsObject _
    Implements IDTSPersist
'Применение
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

Тип FtpClientConnection обеспечивает доступ к следующим элементам.

Конструкторы

  Имя Описание
Открытый метод FtpClientConnection Initializes a new instance of the FtpClientConnection class.

В начало

Свойства

  Имя Описание
Открытое свойство 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 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 Gets or sets the name of the File Transfer Protocol (FTP) server.
Открытое свойство ServerPassword Sets the password for the server specified in the ServerName property. This property is write-only.
Открытое свойство ServerPort Gets or sets the port number on the server.
Открытое свойство ServerUserName Gets or sets the logon alias of the user.
Открытое свойство Timeout Gets or sets a value that indicates how long to attempt the connection before timing out.
Открытое свойство UsePassiveMode Gets or sets a Boolean that indicates whether the task sends and receives files in passive mode.

В начало

Методы

  Имя Описание
Открытый метод Close Closes the FTP connection.
Открытый метод Connect Opens the connection to the server and returns a value that indicates the result of the connection.
Открытый метод CreateRemoteDirectory Creates a remote directory.
Открытый метод DeleteFiles Deletes the specified files from the File Transfer Protocol (FTP) server.
Открытый метод DeleteRemoteDirectory Deletes a remote directory.
Открытый метод Equals Determines whether two object instances are equal. (Производный от DtsObject.)
Защищенный метод Finalize (Производный от Object.)
Открытый метод GetHashCode Returns the hash code for this instance. (Производный от DtsObject.)
Открытый метод GetListing Lists the names of directories and files in the specified folder or directory from the FTP server.
Открытый метод GetType (Производный от Object.)
Открытый метод GetWorkingDirectory Gets the current working directory on the File Transfer Protocol (FTP) server.
Открытый метод LoadFromXML This method is not callable by your application code. To load a package saved as .xml, use the Application..::..LoadPackage method.
Защищенный метод MemberwiseClone (Производный от Object.)
Открытый метод ReceiveFiles Receives files from the File Transfer Protocol (FTP) server.
Открытый метод SaveToXML This method is not callable by your application code. To save a package as .xml, use the Application..::..SaveToXml method.
Открытый метод SendFiles Sends files to the File Transfer Protocol (FTP) server.
Открытый метод SetWorkingDirectory Sets the current working directory on the File Transfer Protocol (FTP) server.
Открытый метод ToString (Производный от Object.)

В начало

Замечания

For more information about the FTP task, see Диспетчер FTP-соединений.

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.