AmqpsIotHubConnection.sendMessageResult(IotHubTransportMessage message, IotHubMessageResult result) 方法
定义
Send an acknowledgement to the IotHub for a message that the Transport layer received
public boolean sendMessageResult(IotHubTransportMessage message, IotHubMessageResult result)
参数
- message
- IotHubTransportMessage
the message to acknowledge
- result
- IotHubMessageResult
the acknowledgement value to notify the service of
返回
boolean
true if the acknowledgement was sent successfully, and false otherwise
例外
TransportException
if an exception occurred while sending the acknowledgement
- 替代