RegistryManager.updateDevice 方法

定义

重载

updateDevice(Device device)

Update device not forced

updateDevice(Device device, Boolean forceUpdate)

Update device with forceUpdate input parameter

updateDevice(Device device)

Update device not forced

public Device updateDevice(Device device)

参数

device
Device

The device object containing updated data

返回

The updated device object

例外

IOException

This exception is thrown if the IO operation failed

IotHubException

This exception is thrown if the response verification failed

updateDevice(Device device, Boolean forceUpdate)

Update device with forceUpdate input parameter

public Device updateDevice(Device device, Boolean forceUpdate)

参数

device
Device

The device object containing updated data

forceUpdate
Boolean

This value is not used

返回

The updated device object

例外

IOException

This exception is thrown if the IO operation failed

IotHubException

This exception is thrown if the response verification failed

适用于