| NetworkBaseReceiveMqttFileAsync 方法  | 
 
            使用MQTT协议从网络接收字节数组,然后写入文件或流中,支持进度报告
            Use MQTT protocol to receive byte array from the network, and then write it to file or stream, support progress report
            
 
        命名空间: 
     HslCommunication.Core.Net
        程序集:
     HslCommunication (在 HslCommunication.dll 中) 版本:10.1.4.0 (10.1.4.0)
 语法
语法protected Task<OperateResult<FileBaseInfo>> ReceiveMqttFileAsync(
	Socket socket,
	Object source,
	Action<long, long> reportProgress = null
)
Protected Function ReceiveMqttFileAsync ( 
	socket As Socket,
	source As Object,
	Optional reportProgress As Action(Of Long, Long) = Nothing
) As Task(Of OperateResult(Of FileBaseInfo))
protected:
Task<OperateResult<FileBaseInfo^>^>^ ReceiveMqttFileAsync(
	Socket^ socket, 
	Object^ source, 
	Action<long long, long long>^ reportProgress = nullptr
)
member ReceiveMqttFileAsync : 
        socket : Socket * 
        source : Object * 
        ?reportProgress : Action<int64, int64> 
(* Defaults:
        let _reportProgress = defaultArg reportProgress null
*)
-> Task<OperateResult<FileBaseInfo>> 
参数
- socket
- 类型:System.Net.SocketsSocket
 网络套接字
- source
- 类型:SystemObject
 文件名或是流
- reportProgress (Optional)
- 类型:SystemActionInt64, Int64
 进度报告
返回值
类型:
TaskOperateResultFileBaseInfo是否操作成功,如果成功,携带文件基本信息
 参见
参见