共用方式為


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。)
公用方法 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.
公用方法 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 連接管理員.

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

請參閱

參考

Microsoft.SqlServer.Dts.Runtime 命名空間