FTPClient Class | Helper帮助文档 |
Ftp客户端相关类
Inheritance Hierarchy
Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class FTPClient
Public Class FTPClient
public ref class FTPClient
type FTPClient = class end
The FTPClient type exposes the following members.
Constructors
Name | Description | |
---|---|---|
FTPClient |
缺省构造函数
| |
FTPClient(String, String, String, String, Int32) |
构造函数
|
Methods
Name | Description | |
---|---|---|
ChDir |
改变目录
| |
Connect |
建立连接
| |
Delete |
删除
| |
Dir |
获得文件列表
| |
DisConnect |
关闭连接
| |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
Get(String, String) |
下载一批文件
| |
Get(String, String, String) |
下载一个文件
| |
GetFileInfo |
获取文件信息
| |
GetFileSize |
获取文件大小
| |
GetHashCode | (Inherited from Object.) | |
GetNoBinary |
下载一个文件
| |
GetTransferType |
获得传输模式
| |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
MkDir |
创建目录
| |
newPutByGuid | ||
Put(String) |
上传一个文件
| |
Put(String, String) |
上传一批文件
| |
PutByGuid |
上传一个文件
| |
Rename |
重命名(如果新文件名与已有文件重名,将覆盖已有文件)
| |
RmDir |
删除目录
| |
SendCommand |
发送命令并获取应答码和最后一行应答字符串
| |
SetTransferType |
设置传输模式
| |
ToString | (Inherited from Object.) |
Fields
Name | Description | |
---|---|---|
obj |
Properties
Name | Description | |
---|---|---|
Connected |
是否登录
| |
RemoteHost |
FTP服务器IP地址
| |
RemotePass |
用户登录密码
| |
RemotePath |
当前服务器目录
| |
RemotePort |
FTP服务器端口
| |
RemoteUser |
登录用户账号
|
See Also