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 类型公开以下成员。
属性
名称 | 说明 | |
---|---|---|
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 继承。) |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。