你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

RegistryManager.AddDevicesAsync 方法

定义

重载

AddDevicesAsync(IEnumerable<Device>)
已过时.

向系统注册新设备列表

AddDevicesAsync(IEnumerable<Device>, CancellationToken)
已过时.

向系统注册新设备列表

AddDevicesAsync(IEnumerable<Device>)

注意

Use AddDevices2Async

向系统注册新设备列表

[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())

参数

devices
IEnumerable<Device>

正在注册的 Device 对象。

返回

返回错误消息的字符串数组。

属性

适用于

AddDevicesAsync(IEnumerable<Device>, CancellationToken)

注意

Use AddDevices2Async

向系统注册新设备列表

[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())

参数

devices
IEnumerable<Device>

正在注册的 Device 对象。

cancellationToken
CancellationToken

允许取消操作的令牌。

返回

返回错误消息的字符串数组。

属性

适用于