C# 클래스 Utility.FtpClient

Ftp操作类
FileName: FtpClient.cs CLRVersion: 4.0.30319.18444 Author: Devin DateTime: 2016/1/27 14:42:04 GitHub: https://github.com/v5bep7/Utility
파일 보기 프로젝트 열기: v5bep7/Utility

공개 메소드들

메소드 설명
FtpClient ( string ftpServerIp, int timeout, string ftpUserId, string ftpPassword ) : System

创建FtpClient对象

FtpClient ( string ftpServerIp, string ftpUserId, string ftpPassword ) : System

创建FtpClient对象

Upload ( string remotePath, string remoteFileName, Stream stream ) : void

비공개 메소드들

메소드 설명
Connect ( string uri, string ftpMethod ) : FtpWebRequest

建立FTP链接,返回请求对象

메소드 상세

FtpClient() 공개 메소드

创建FtpClient对象
public FtpClient ( string ftpServerIp, int timeout, string ftpUserId, string ftpPassword ) : System
ftpServerIp string ftp链接,不用写协议头.如:127.0.0.1
timeout int 默认的超时时间
ftpUserId string 用户名
ftpPassword string 密码
리턴 System

FtpClient() 공개 메소드

创建FtpClient对象
public FtpClient ( string ftpServerIp, string ftpUserId, string ftpPassword ) : System
ftpServerIp string ftp链接地址,不用写协议头.如:127.0.0.1
ftpUserId string 用户名
ftpPassword string 密码
리턴 System

Upload() 공개 메소드

public Upload ( string remotePath, string remoteFileName, Stream stream ) : void
remotePath string
remoteFileName string
stream Stream
리턴 void