我无法知道FileTransferProgressEventArgs
在 C# 中使用 WinSCP .NET 程序集触发事件时发送的文件的百分比。
FileProgress
仅返回0
or ,1
或者文档说 (0-1) 我不明白。我需要知道发送了多少字节的文件,而不是我不明白的 0,1。我知道 CPS 是每秒字节数,但我需要更多变量。
我增加进度条的方法如下 void
SessionFileTransferProgress(object sender, FileTransferProgressEventArgs e)
{
progressBar.Increment((int)e.FileProgress);
}
它e.FileProgress
和e.CPS
我认为可以帮助但似乎我错过了一些东西。