RegistryManager.AddDevicesAsync Method

Definition

Overloads

AddDevicesAsync(IEnumerable<Device>)
Obsolete.

Register a list of new devices with the system

AddDevicesAsync(IEnumerable<Device>, CancellationToken)
Obsolete.

Register a list of new devices with the system

AddDevicesAsync(IEnumerable<Device>)

Caution

Use AddDevices2Async

Register a list of new devices with the system

[System.Obsolete("Use AddDevices2Async")]
public virtual System.Threading.Tasks.Task<string[]> AddDevicesAsync (System.Collections.Generic.IEnumerable<Microsoft.Azure.Devices.Device> devices);
[<System.Obsolete("Use AddDevices2Async")>]
abstract member AddDevicesAsync : seq<Microsoft.Azure.Devices.Device> -> System.Threading.Tasks.Task<string[]>
override this.AddDevicesAsync : seq<Microsoft.Azure.Devices.Device> -> System.Threading.Tasks.Task<string[]>
Public Overridable Function AddDevicesAsync (devices As IEnumerable(Of Device)) As Task(Of String())

Parameters

devices
IEnumerable<Device>

The Device objects being registered.

Returns

Task<String[]>

Returns a string array of error messages.

Attributes

Applies to

AddDevicesAsync(IEnumerable<Device>, CancellationToken)

Caution

Use AddDevices2Async

Register a list of new devices with the system

[System.Obsolete("Use AddDevices2Async")]
public virtual System.Threading.Tasks.Task<string[]> AddDevicesAsync (System.Collections.Generic.IEnumerable<Microsoft.Azure.Devices.Device> devices, System.Threading.CancellationToken cancellationToken);
[<System.Obsolete("Use AddDevices2Async")>]
abstract member AddDevicesAsync : seq<Microsoft.Azure.Devices.Device> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string[]>
override this.AddDevicesAsync : seq<Microsoft.Azure.Devices.Device> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string[]>
Public Overridable Function AddDevicesAsync (devices As IEnumerable(Of Device), cancellationToken As CancellationToken) As Task(Of String())

Parameters

devices
IEnumerable<Device>

The Device objects being registered.

cancellationToken
CancellationToken

The token which allows the operation to be canceled.

Returns

Task<String[]>

Returns a string array of error messages.

Attributes

Applies to