点击或拖拽改变大小

FtpHelperUpload 方法

Sweet 开发框架
上传文件流

命名空间:  Sweet.Ftp
程序集:  Sweet.Ftp (在 Sweet.Ftp.dll 中) 版本:3.10.1.0 (3.10.1.0)
语法
public FtpStatus Upload(
	Stream fileStream,
	string remotePath,
	FtpRemoteExists existsMode = FtpRemoteExists.Overwrite,
	bool createRemoteDir = false,
	Action<FtpProgress> progress = null
)

参数

fileStream
类型:System.IOStream

[缺少 "M:Sweet.Ftp.FtpHelper.Upload(System.IO.Stream,System.String,FluentFTP.FtpRemoteExists,System.Boolean,System.Action{FluentFTP.FtpProgress})" 的 <param name="fileStream"/> 文档]

remotePath
类型:SystemString

[缺少 "M:Sweet.Ftp.FtpHelper.Upload(System.IO.Stream,System.String,FluentFTP.FtpRemoteExists,System.Boolean,System.Action{FluentFTP.FtpProgress})" 的 <param name="remotePath"/> 文档]

existsMode (Optional)
类型:FtpRemoteExists

[缺少 "M:Sweet.Ftp.FtpHelper.Upload(System.IO.Stream,System.String,FluentFTP.FtpRemoteExists,System.Boolean,System.Action{FluentFTP.FtpProgress})" 的 <param name="existsMode"/> 文档]

createRemoteDir (Optional)
类型:SystemBoolean

[缺少 "M:Sweet.Ftp.FtpHelper.Upload(System.IO.Stream,System.String,FluentFTP.FtpRemoteExists,System.Boolean,System.Action{FluentFTP.FtpProgress})" 的 <param name="createRemoteDir"/> 文档]

progress (Optional)
类型:SystemActionFtpProgress

[缺少 "M:Sweet.Ftp.FtpHelper.Upload(System.IO.Stream,System.String,FluentFTP.FtpRemoteExists,System.Boolean,System.Action{FluentFTP.FtpProgress})" 的 <param name="progress"/> 文档]

返回值

类型:FtpStatus

[缺少 "M:Sweet.Ftp.FtpHelper.Upload(System.IO.Stream,System.String,FluentFTP.FtpRemoteExists,System.Boolean,System.Action{FluentFTP.FtpProgress})" 的 <returns> 文档]

参见
SweetUI 控件库、工具类库、扩展类库、多页面开发框架