FTPClientConnection100Class 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为FTP客户端任务提供属性和方法。
public ref class FTPClientConnection100Class : Microsoft::SqlServer::Dts::Runtime::Wrapper::FTPClientConnection100
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.Guid("CCCD3499-1569-4001-AC4E-AA6A1B53F0D4")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
public class FTPClientConnection100Class : Microsoft.SqlServer.Dts.Runtime.Wrapper.FTPClientConnection100
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
[System.Runtime.InteropServices.Guid("38BFBCC8-3C1E-4E28-8417-8C5401BBBF27")]
public class FTPClientConnection100Class : Microsoft.SqlServer.Dts.Runtime.Wrapper.FTPClientConnection100
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
[System.Runtime.InteropServices.Guid("D7623778-554E-4538-A5D3-A80E77047B93")]
public class FTPClientConnection100Class : Microsoft.SqlServer.Dts.Runtime.Wrapper.FTPClientConnection100
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.Guid("CCCD3499-1569-4001-AC4E-AA6A1B53F0D4")>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
type FTPClientConnection100Class = class
interface IDTSFtpClientConnection100
interface FTPClientConnection100
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
[<System.Runtime.InteropServices.Guid("38BFBCC8-3C1E-4E28-8417-8C5401BBBF27")>]
type FTPClientConnection100Class = class
interface IDTSFtpClientConnection100
interface FTPClientConnection100
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
[<System.Runtime.InteropServices.Guid("D7623778-554E-4538-A5D3-A80E77047B93")>]
type FTPClientConnection100Class = class
interface IDTSFtpClientConnection100
interface FTPClientConnection100
Public Class FTPClientConnection100Class
Implements FTPClientConnection100
- 继承
-
FTPClientConnection100Class
- 属性
- 实现
构造函数
| 名称 | 说明 |
|---|---|
| FTPClientConnection100Class() |
初始化 FTPClientConnection100Class 类的新实例。 |
属性
| 名称 | 说明 |
|---|---|
| ChunkSize |
获取或设置数据传输所需的字节数量。 |
| Retries |
获取或设置任务尝试操作的次数。 |
| ServerName |
获取或设置FTP服务器的名称。 |
| ServerPassword |
获取或设置认证密码。 |
| ServerPort |
获取或设置FTP服务器端口。 |
| ServerUserName |
获取或设置用户的登录别名。 |
| Timeout |
获取或设置一个值,表示尝试连接的时间长度后会超时。 |
| UsePassiveMode |
获取或设置一个值,指示任务是否以被动模式发送和接收文件。 |
方法
| 名称 | 说明 |
|---|---|
| Close() |
关闭与FTP服务器的连接。 |
| Connect() |
尝试建立与FTP服务器的连接。 |
| CreateRemoteDirectory(String) |
在 FTP 服务器上创建指定的文件夹。 |
| DeleteFiles(String[]) |
删除FTP服务器上的文件列表。 |
| DeleteRemoteDirectory(String) |
删除FTP服务器上指定的文件夹。 |
| GetListing(String[], String[]) |
它会获得当前工作目录中的文件列表。 |
| GetWorkingDirectory() |
获取当前工作目录。 |
| ReceiveFiles(String[], String, Boolean, Boolean) |
从FTP服务器接收文件。 |
| SendFiles(String[], String, Boolean, Boolean) |
将文件从本地计算机发送到FTP服务器。 |
| SetWorkingDirectory(String) |
将当前工作目录设置为指定的路径。 |