ReprovisionPolicy.setMigrateDeviceData(boolean migrateDeviceData) 方法

定义

When set to true (default), the Device Provisioning Service will migrate the device's data (twin, device capabilities, and device ID) from one IoT hub to another during an IoT hub assignment update. If set to false, the Device Provisioning Service will reset the device's data to the initial desired configuration stored in the provisioning service's enrollment list.

public void setMigrateDeviceData(boolean migrateDeviceData)

参数

migrateDeviceData
boolean

theboolean 

</code> with the flag for migrateDeviceData. </p>

适用于