RegistryManager.AddDevices2Async Method

Definition

Overloads

AddDevices2Async(IEnumerable<Device>)

Register a list of new devices with the system

AddDevices2Async(IEnumerable<Device>, CancellationToken)

Register a list of new devices with the system

AddDevices2Async(IEnumerable<Device>)

Register a list of new devices with the system

C#
public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.BulkRegistryOperationResult> AddDevices2Async(System.Collections.Generic.IEnumerable<Microsoft.Azure.Devices.Device> devices);

Parameters

devices
IEnumerable<Device>

The Device objects being registered.

Returns

Returns a BulkRegistryOperationResult object.

Applies to

Azure SDK for .NET Latest
Product Versies
Azure SDK for .NET Latest

AddDevices2Async(IEnumerable<Device>, CancellationToken)

Register a list of new devices with the system

C#
public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.BulkRegistryOperationResult> AddDevices2Async(System.Collections.Generic.IEnumerable<Microsoft.Azure.Devices.Device> devices, System.Threading.CancellationToken cancellationToken);

Parameters

devices
IEnumerable<Device>

The Device objects being registered.

cancellationToken
CancellationToken

The token which allows the operation to be canceled.

Returns

Returns a BulkRegistryOperationResult object.

Applies to

Azure SDK for .NET Latest
Product Versies
Azure SDK for .NET Latest