FileClientBaseDownloadFileBaseAsync 方法 |
下载服务器的文件数据,并且存储到对应的内容里去。
Download the file data of the server and store it in the corresponding content.
命名空间:
HslCommunication.Enthernet
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 protected Task<OperateResult> DownloadFileBaseAsync(
string factory,
string group,
string id,
string fileName,
Action<long, long> processReport,
Object source
)
Protected Function DownloadFileBaseAsync (
factory As String,
group As String,
id As String,
fileName As String,
processReport As Action(Of Long, Long),
source As Object
) As Task(Of OperateResult)
protected:
Task<OperateResult^>^ DownloadFileBaseAsync(
String^ factory,
String^ group,
String^ id,
String^ fileName,
Action<long long, long long>^ processReport,
Object^ source
)
member DownloadFileBaseAsync :
factory : string *
group : string *
id : string *
fileName : string *
processReport : Action<int64, int64> *
source : Object -> Task<OperateResult>
参数
- factory
- 类型:SystemString
一级分类 - group
- 类型:SystemString
二级分类 - id
- 类型:SystemString
三级分类 - fileName
- 类型:SystemString
服务器的文件名称 - processReport
- 类型:SystemActionInt64, Int64
下载的进度报告,第一个数据是已完成总接字节数,第二个数据是总字节数。 - source
- 类型:SystemObject
数据源信息,决定最终存储到哪里去
返回值
类型:
TaskOperateResult是否成功的结果对象
参见