RegistryManager.UpdateDevicesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
UpdateDevicesAsync(IEnumerable<Device>, Boolean, CancellationToken) |
Obsolete.
Update a list of devices with the system |
UpdateDevicesAsync(IEnumerable<Device>) |
Obsolete.
Update a list of devices with the system |
UpdateDevicesAsync(IEnumerable<Device>, Boolean, CancellationToken)
Caution
Use UpdateDevices2Async
Update a list of devices with the system
[System.Obsolete("Use UpdateDevices2Async")]
public virtual System.Threading.Tasks.Task<string[]> UpdateDevicesAsync (System.Collections.Generic.IEnumerable<Microsoft.Azure.Devices.Device> devices, bool forceUpdate, System.Threading.CancellationToken cancellationToken);
[<System.Obsolete("Use UpdateDevices2Async")>]
abstract member UpdateDevicesAsync : seq<Microsoft.Azure.Devices.Device> * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string[]>
override this.UpdateDevicesAsync : seq<Microsoft.Azure.Devices.Device> * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string[]>
Public Overridable Function UpdateDevicesAsync (devices As IEnumerable(Of Device), forceUpdate As Boolean, cancellationToken As CancellationToken) As Task(Of String())
Parameters
- devices
- IEnumerable<Device>
The Device objects being updated.
- forceUpdate
- Boolean
Forces the device object to be replaced even if it was updated since it was retrieved last time.
- cancellationToken
- CancellationToken
The token which allows the operation to be canceled.
Returns
Returns a string array of error messages.
- Attributes
Applies to
UpdateDevicesAsync(IEnumerable<Device>)
Caution
Use UpdateDevices2Async
Update a list of devices with the system
[System.Obsolete("Use UpdateDevices2Async")]
public virtual System.Threading.Tasks.Task<string[]> UpdateDevicesAsync (System.Collections.Generic.IEnumerable<Microsoft.Azure.Devices.Device> devices);
[<System.Obsolete("Use UpdateDevices2Async")>]
abstract member UpdateDevicesAsync : seq<Microsoft.Azure.Devices.Device> -> System.Threading.Tasks.Task<string[]>
override this.UpdateDevicesAsync : seq<Microsoft.Azure.Devices.Device> -> System.Threading.Tasks.Task<string[]>
Public Overridable Function UpdateDevicesAsync (devices As IEnumerable(Of Device)) As Task(Of String())
Parameters
- devices
- IEnumerable<Device>
The Device objects being updated.
Returns
Returns a string array of error messages.
- Attributes